diff --git a/stdlib/types.pyi b/stdlib/types.pyi index ebf95db57..899024f2d 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -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]):