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

This commit is contained in:
Pavel Karateev authored and GitHub committed 2021-11-18 11:36:41 -08:00
1 parent 3db6ac2d7b
commit 42fa8434f0
1 file changed
+2
+2
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]):