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
copy.replace()
Bug Report
attrs 24.3.0 added support for __replace__ in python-attrs/attrs#1383. Mypy doesn't like it.
__replace__
To Reproduce
import copy from attrs import define @define class Foo: one: int foo = Foo(1) bar = copy.replace(foo, one=2)
Actual Behavior
a.py:12: error: Value of type variable "_SR" of "replace" cannot be "Foo" [type-var]
Your Environment
mypy .
mypy.ini
Package Version ----------------- ------- attrs 24.3.0 mypy 1.13.0 mypy-extensions 1.0.0 typing-extensions 4.12.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
attrs 24.3.0 added support for
__replace__
in python-attrs/attrs#1383. Mypy doesn't like it.To Reproduce
Actual Behavior
Your Environment
mypy .
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: