Bug report
Bug description:
This can cause odd behaviour for subclasses which then propagate their parent's annotations rather than their own.
class MyType(type):
METACLASS_VAR: int = 1
class A(metaclass=MyType):
value: str = "HI"
class B(A):
pass
B.__annotations__ # {"value": str} instead of {}; but if you remove the type annotation in `MyType`, you get {}
This issue only seems to affect versions prior to 3.14
CPython versions tested on:
3.10, 3.13, 3.14
Operating systems tested on:
Linux
Bug report
Bug description:
This can cause odd behaviour for subclasses which then propagate their parent's annotations rather than their own.
This issue only seems to affect versions prior to 3.14
CPython versions tested on:
3.10, 3.13, 3.14
Operating systems tested on:
Linux