[New-bugs-announce] [issue45805] CO_FUTURE_ANNOTATIONS flag is not documented or in inspect

Saul Shanabrook report at bugs.python.org
Sun Nov 14 03:20:37 EST 2021


New submission from Saul Shanabrook <s.shanabrook at gmail.com>:

The CO_FUTURE_ANNOTATIONS code flag was added in Python 3.7 I believe in this PR https://github.com/python/cpython/pull/4390.

However, it does not appear in dis's COMPILER_FLAG_NAMES map and so is not documented in inspect or pretty printed.

I believe the fix would be to add it to the dict in dis as well as document it in inspect.

----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 406309
nosy: docs at python, saulshanabrook
priority: normal
severity: normal
status: open
title: CO_FUTURE_ANNOTATIONS flag is not documented or in inspect
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45805>
_______________________________________


More information about the New-bugs-announce mailing list