mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 20:57:03 +08:00
Add codeobject.co_positions() for Python 3.11 (#6339)
This commit is contained in:
1 parent
3db6ac2d7b
commit
42fa8434f0
1 file changed
+2
@@ -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]):
|
||||
|
||||
Reference in new issue
Block a user