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
Currently mypy isn't happy about dynamic base classes, even though these are not uncommon. Maybe mypy could do a better job.
Currently this works:
base: Any=create_class()
classA(base): ...
However, these don't work:
base2=create_class() # no annotation for base2 -> doesn't workclassB(base2): ...
classC(create_class()): ... # function call as base classbase3: Type[A] = ...
classD(base3): ...
A plugin architecture (#1240) would help with commonly used libraries, but it wouldn't help with more ad-hoc uses of dynamic base classes.
The text was updated successfully, but these errors were encountered:
Currently mypy isn't happy about dynamic base classes, even though these are not uncommon. Maybe mypy could do a better job.
Currently this works:
However, these don't work:
A plugin architecture (#1240) would help with commonly used libraries, but it wouldn't help with more ad-hoc uses of dynamic base classes.
The text was updated successfully, but these errors were encountered: