Skip to content

Incorrect errors logged by the positional_decorator #825

@hiranya911

Description

@hiranya911

Calling http.BatchHttpRequest() with only positional arguments raises/logs the following error:

req = BatchHttpRequest(callback, my_batch_uri)

TypeError: __init__() takes at most 1 positional argument (3 given)

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:

req = BatchHttpRequest(callback, batch_uri=my_batch_uri)

TypeError: __init__() takes at most 1 positional argument (2 given)

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions