PEP 696 false positive when used with a class with no __new__
#4417
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
When a generic class uses default TypeVar types and provides an
__init__
but no__new__
method, pyright computes an incorrect specialization type for the constructor call.The text was updated successfully, but these errors were encountered: