Contravariant TypeVar
s don't work in dataclasses
#4421
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
I'm trying to create a generic dataclass with a contravariant type variable. But I'm getting an error when instantiating the class.
To Reproduce
Run pyright for the following code:
Expected behavior
No errors.
Additional context
pyright: 1.1.287
The text was updated successfully, but these errors were encountered: