type[TypeVar]
not checked properly with upper bound
#14755
Labels
type[TypeVar]
not checked properly with upper bound
#14755
Bug Report
When checking a function with argument of
type[SomeTypeVar]
, class attributes are considered missing.To Reproduce
This doesn't depend on
ClassVar
and works withFinal
or plainstr
as well.Gist: https://mypy-play.net/?mypy=master&python=3.10&gist=2d769a9767898e71431e59df1c2f8488
Expected Behavior
No errors (let's ignore
cast
for now, it's another unrelated issue).Actual Behavior
Your Environment
mypy.ini
(and other config files): not relatedDiscovered in this SO question
The text was updated successfully, but these errors were encountered: