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
# Add a code block here, if required# Demonstrate AttributeError: type object 'module' has no attribute '__annotations__'# Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32importsys, inspectpObj=type(sys)
print(pObj) # <class 'module'>forname, valueiniter(inspect.getmembers(pObj)): # Delivers member '__annotations__'print(name)
try : obj=eval('pObj.'+name) # Works fine, except for '__annotations__'exceptAttributeError : print('***********************************') # AttributeError: type object 'module' has no attribute '__annotations__'
CPython versions tested on:
3.12
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered:
Bug report
Bug description:
CPython versions tested on:
3.12
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: