Mark Shannon <m...@hotpy.org> added the comment: Works as expected:
>>> class C: ... exec('x: int') ... >>> C.__annotations__ {'x': <class 'int'>} >>> __annotations__ {} ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32550> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com