Add codeobject.co_positions() for Python 3.11 (#6339)

This commit is contained in:
Pavel Karateev
2021-11-18 22:36:41 +03:00
committed by GitHub
parent 3db6ac2d7b
commit 42fa8434f0

View File

@@ -144,6 +144,8 @@ class CodeType:
co_name: str = ...,
co_lnotab: bytes = ...,
) -> CodeType: ...
if sys.version_info >= (3, 11):
def co_positions(self) -> Iterable[tuple[int | None, int | None, int | None, int | None]]: ...
@final
class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]):