-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Incorrect errors logged by the positional_decorator #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like that decorator was written to force arguments to be passed by name. The number '1' in google-api-python-client/googleapiclient/_helpers.py Lines 42 to 110 in 66bb32c
Closing as this works as intended. |
Calling
http.BatchHttpRequest()
with only positional arguments raises/logs the following error:This makes no sense since I'm only passing 2 arguments to the constructor.
Moreover, the decorator on the constructor indicates
positional(1)
, which I assume means should allow at most one positional argument. But the following doesn't work:The text was updated successfully, but these errors were encountered: