| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,6 +156,9 @@ class BinaryWriter: | |||
| 156 | 156 | ) -> None: ... | |
| 157 | 157 | @property | |
| 158 | 158 | def total_samples(self) -> int: ... | |
| 159 | + # Added in Python 3.15.1. | ||
| 160 | + @property | ||
| 161 | + def limit_reached(self) -> bool: ... | ||
| 159 | 162 | def write_sample(self, stack_frames: list[InterpreterInfo], timestamp_us: int) -> None: ... | |
| 160 | 163 | def set_stats( | |
| 161 | 164 | self, /, duration_sec: float, sample_rate: float, error_rate: float | None = None, missed_samples: float | None = None | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,6 +47,10 @@ class TokenList(list[TokenList | Terminal]): | |||
| 47 | 47 | def as_ew_allowed(self) -> bool: ... | |
| 48 | 48 | @property | |
| 49 | 49 | def comments(self) -> list[str]: ... | |
| 50 | + if sys.version_info >= (3, 14): | ||
| 51 | + # Added in Python 3.14.9 and 3.15.1. | ||
| 52 | + def contains_token_type(self, *token_types: str | None) -> bool: ... | ||
| 53 | + | ||
| 50 | 54 | def fold(self, *, policy: Policy) -> str: ... | |
| 51 | 55 | def pprint(self, indent: str = "") -> None: ... | |
| 52 | 56 | def ppstr(self, indent: str = "") -> str: ... | |
@@ -339,6 +343,10 @@ class Terminal(str): | |||
| 339 | 343 | def pop_trailing_ws(self) -> None: ... | |
| 340 | 344 | @property | |
| 341 | 345 | def comments(self) -> list[str]: ... | |
| 346 | + if sys.version_info >= (3, 14): | ||
| 347 | + # Added in Python 3.14.9 and 3.15.1. | ||
| 348 | + def contains_token_type(self, *token_types: str | None) -> bool: ... | ||
| 349 | + | ||
| 342 | 350 | def __getnewargs__(self) -> tuple[str, str]: ... # type: ignore[override] | |
| 343 | 351 | ||
| 344 | 352 | class WhiteSpaceTerminal(Terminal): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,7 +169,12 @@ class Process(BaseProcess): | |||
| 169 | 169 | ||
| 170 | 170 | class DefaultContext(BaseContext): | |
| 171 | 171 | Process: ClassVar[type[Process]] | |
| 172 | - def __init__(self, context: BaseContext) -> None: ... | ||
| 172 | + if sys.version_info >= (3, 14): | ||
| 173 | + # The context parameter became optional in Python 3.14.9 and 3.15.1. | ||
| 174 | + def __init__(self, context: BaseContext | None = None) -> None: ... | ||
| 175 | + else: | ||
| 176 | + def __init__(self, context: BaseContext) -> None: ... | ||
| 177 | + | ||
| 173 | 178 | def get_start_method(self, allow_none: bool = False) -> str: ... | |
| 174 | 179 | def get_all_start_methods(self) -> list[str]: ... | |
| 175 | 180 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments