mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Update types.py for 3.14 (#14146)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user