False positive error when type(None)
or NoneType
is used as second argument to issubclass
#6186
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Pyright shouldn't generate an error when
type(None)
orNoneType
is used in the second argument toissubclass
.Furthermore, this should work for type narrowing, but it doesn't currently.
This is related to a bug filed in the mypy issue tracker: python/mypy#16279
The text was updated successfully, but these errors were encountered: