Open
Description
Bug report
Bug description:
# Inconsistency between FunctionType and its __dict__
from types import FunctionType as FunctionType
print(FunctionType.__dict__['__annotations__']) # <attribute '__annotations__' of 'function' objects>
print(FunctionType.__annotations__) # AttributeError: type object 'function' has no attribute '__annotations__'
CPython versions tested on:
3.13
Operating systems tested on:
Windows