We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug Report
mypy v1.10.0 gives the following error, while it was working with v1.9.0:
mypy
test.py:13: error: Missing positional argument "self" in call to "__call__" of "_Wrapped" [call-arg]
To Reproduce
# test.py from functools import wraps class Foo: def f(self): pass class Bar: @wraps(Foo.f) def f(self): pass bar = Bar() bar.f()
mypy test.py
Expected Behavior
There should be no error.
The text was updated successfully, but these errors were encountered:
almost certainly due to #16942
Sorry, something went wrong.
I also hit this in a few places. Here's the relevant upstream bug python/typeshed#10653
Workaround I used:
from typing import TYPE_CHECKING class Bar: def f(self): pass if not TYPE_CHECKING: f = wraps(Foo.f)(f)
No branches or pull requests
Bug Report
mypy
v1.10.0 gives the following error, while it was working with v1.9.0:To Reproduce
Expected Behavior
There should be no error.
The text was updated successfully, but these errors were encountered: