Closed injust closed 5 months ago
There's probably a difference between Foo
and type(foo)
- the latter can be any arbitrary subclass of Foo
. I would reopen this over at the mypy tracker though; that's a better place for it.
Will close this here.
mypy infers
attrs.fields(type(foo))
asAny
But mypy infers
attrs.fields(Foo)
just fineIs it possible to have mypy infer the type of
attrs.fields(type(foo))
?