Update types.py for 3.14 (#14146)

This commit is contained in:
sobolevn
2025-05-26 12:14:49 +03:00
committed by GitHub
parent 204ec1273f
commit 8cbb7167c6
2 changed files with 5 additions and 2 deletions
@@ -51,8 +51,6 @@ turtle.fill
turtle.no_animation
turtle.poly
turtle.save
types.CodeType.co_branches
types.FrameType.f_generator
# =========================
# New errors in Python 3.14
+5
View File
@@ -171,6 +171,8 @@ class CodeType:
@property
def co_qualname(self) -> str: ...
def co_positions(self) -> Iterable[tuple[int | None, int | None, int | None, int | None]]: ...
if sys.version_info >= (3, 14):
def co_branches(self) -> Iterator[tuple[int, int, int]]: ...
if sys.version_info >= (3, 11):
def __new__(
@@ -580,6 +582,9 @@ class FrameType:
f_trace_lines: bool
f_trace_opcodes: bool
def clear(self) -> None: ...
if sys.version_info >= (3, 14):
@property
def f_generator(self) -> GeneratorType[Any, Any, Any] | CoroutineType[Any, Any, Any] | None: ...
@final
class GetSetDescriptorType: