FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix stdlib stubtest on Python 3.14.9 and 3.15.1 by AlexWaygood · Pull Request #16596 · python/typeshed · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 3 additions & 0 deletions stdlib/_remote_debugging.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ class BinaryWriter:
) -> None: ...
@property
def total_samples(self) -> int: ...
# Added in Python 3.15.1.
@property
def limit_reached(self) -> bool: ...
def write_sample(self, stack_frames: list[InterpreterInfo], timestamp_us: int) -> None: ...
def set_stats(
self, /, duration_sec: float, sample_rate: float, error_rate: float | None = None, missed_samples: float | None = None
Expand Down
8 changes: 8 additions & 0 deletions stdlib/email/_header_value_parser.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class TokenList(list[TokenList | Terminal]):
def as_ew_allowed(self) -> bool: ...
@property
def comments(self) -> list[str]: ...
if sys.version_info >= (3, 14):
# Added in Python 3.14.9 and 3.15.1.
def contains_token_type(self, *token_types: str | None) -> bool: ...

def fold(self, *, policy: Policy) -> str: ...
def pprint(self, indent: str = "") -> None: ...
def ppstr(self, indent: str = "") -> str: ...
Expand Down Expand Up @@ -339,6 +343,10 @@ class Terminal(str):
def pop_trailing_ws(self) -> None: ...
@property
def comments(self) -> list[str]: ...
if sys.version_info >= (3, 14):
# Added in Python 3.14.9 and 3.15.1.
def contains_token_type(self, *token_types: str | None) -> bool: ...

def __getnewargs__(self) -> tuple[str, str]: ... # type: ignore[override]

class WhiteSpaceTerminal(Terminal):
Expand Down
7 changes: 6 additions & 1 deletion stdlib/multiprocessing/context.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ class Process(BaseProcess):

class DefaultContext(BaseContext):
Process: ClassVar[type[Process]]
def __init__(self, context: BaseContext) -> None: ...
if sys.version_info >= (3, 14):
# The context parameter became optional in Python 3.14.9 and 3.15.1.
def __init__(self, context: BaseContext | None = None) -> None: ...
else:
def __init__(self, context: BaseContext) -> None: ...

def get_start_method(self, allow_none: bool = False) -> str: ...
def get_all_start_methods(self) -> list[str]: ...

Expand Down
Loading

Back | FazBrowse Home | New Git URL