You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#14755.
This case is already covered by
`check-classes.test::testTypeUsingTypeCClassMethodFromTypeVarUnionBound`,
now we just remove from it errors that shouldn't be reported.
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: