We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
annotationlib
1 parent be4c7c7 commit df3b7faCopy full SHA for df3b7fa
Doc/library/annotationlib.rst
@@ -511,7 +511,7 @@ code execution even with no access to any globals or builtins. For example:
511
512
>>> def f(x: (1).__class__.__base__.__subclasses__()[-1].__init__.__builtins__["print"]("Hello world")): pass
513
...
514
- >>> annotationlib.get_annotations(f, format=annotationlib.Format.SOURCE)
+ >>> annotationlib.get_annotations(f, format=annotationlib.Format.STRING)
515
Hello world
516
{'x': 'None'}
517
0 commit comments