Updates for Python 3.13.10 and 3.14.1 (#15105)

Closes #15104
This commit is contained in:
Sebastian Rittau
2025-12-04 20:19:06 +01:00
committed by GitHub
parent 5e3a96dcaa
commit e56ae65a49
27 changed files with 170 additions and 75 deletions
+6
View File
@@ -1,3 +1,4 @@
import sys
from _typeshed import ReadableBuffer, SupportsRead
from collections.abc import Callable
from pyexpat import errors as errors, model as model
@@ -29,6 +30,11 @@ class XMLParserType:
def UseForeignDTD(self, flag: bool = True, /) -> None: ...
def GetReparseDeferralEnabled(self) -> bool: ...
def SetReparseDeferralEnabled(self, enabled: bool, /) -> None: ...
if sys.version_info >= (3, 10):
# Added in Python 3.10.20, 3.11.15, 3.12.3, 3.13.10, 3.14.1
def SetAllocTrackerActivationThreshold(self, threshold: int, /) -> None: ...
def SetAllocTrackerMaximumAmplification(self, max_factor: float, /) -> None: ...
@property
def intern(self) -> dict[str, str]: ...
buffer_size: int