Skip to content

Commit 42fa843

Browse files
authored
Add codeobject.co_positions() for Python 3.11 (#6339)
1 parent 3db6ac2 commit 42fa843

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/types.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class CodeType:
144144
co_name: str = ...,
145145
co_lnotab: bytes = ...,
146146
) -> CodeType: ...
147+
if sys.version_info >= (3, 11):
148+
def co_positions(self) -> Iterable[tuple[int | None, int | None, int | None, int | None]]: ...
147149

148150
@final
149151
class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]):

0 commit comments

Comments
 (0)