Closed
Description
Minimal reproduction:
from githubkit import GitHub, TokenAuthStrategy
gh = GitHub(TokenAuthStrategy("")).rest
Error:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File ["<ipython-input-3-4ec18c08ad11>"](https://localhost:8080/#), line 1, in <module>
from githubkit import GitHub, TokenAuthStrategy
File "/usr/local/lib/python3.8/dist-packages/githubkit/__init__.py", line 2, in <module>
from .github import GitHub as GitHub
File "/usr/local/lib/python3.8/dist-packages/githubkit/github.py", line 16, in <module>
from .core import GitHubCore
File "/usr/local/lib/python3.8/dist-packages/githubkit/core.py", line 24, in <module>
from .auth import BaseAuthStrategy, TokenAuthStrategy, UnauthAuthStrategy
File "/usr/local/lib/python3.8/dist-packages/githubkit/auth/__init__.py", line 1, in <module>
from .app import AppAuthStrategy as AppAuthStrategy
File "/usr/local/lib/python3.8/dist-packages/githubkit/auth/app.py", line 10, in <module>
from githubkit.rest import (
File "/usr/local/lib/python3.8/dist-packages/githubkit/rest/__init__.py", line 25, in <module>
from .actions import ActionsClient
File "/usr/local/lib/python3.8/dist-packages/githubkit/rest/actions.py", line 2189
def update_org_variable(
^
SyntaxError: duplicate argument 'name' in function definition
Not a python expert, but the error seems to be here:
githubkit/githubkit/rest/actions.py
Line 2195 in 2285d01
githubkit/githubkit/rest/actions.py
Line 2238 in 2285d01
Same possible issue in the async version of the signature. Issue is not present in 0.9.4