Generic type parameters to Argument 1 of attrs.evolve
only unify under very specific circumstances (mypy 1.2)
#15088
Labels
attrs.evolve
only unify under very specific circumstances (mypy 1.2)
#15088
Bug Report
(A clear and concise description of what the bug is.)
To Reproduce
Actual Behavior
This gets worse when using constrained typevars, because the typevar on the function/method gets expanded to every constraint, but the typevar on the class isn't expanded, so it only accepts the typevar, even though it's passing the concrete type.
Your Environment
mypy 1.2.0 (compiled: yes)
(passes withmypy 1.1.1 (compiled: yes)
)mypy.ini
(and other config files): (these approximate some past version of--strict
, and a bunch of project-specific stuff that shouldn't be relevant)3.9.4
The text was updated successfully, but these errors were encountered: