Skip to content

Commit 6c4a1a3

Browse files
committed
Add version_info branch
1 parent 295d2e0 commit 6c4a1a3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

stdlib/pyexpat/__init__.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import sys
12
from _typeshed import ReadableBuffer, SupportsRead
23
from collections.abc import Callable
34
from pyexpat import errors as errors, model as model
45
from typing import Any, Final, final
5-
from psycopg2.extensions import Int
66
from typing_extensions import CapsuleType, TypeAlias
77
from xml.parsers.expat import ExpatError as ExpatError
88

@@ -30,9 +30,10 @@ class XMLParserType:
3030
def UseForeignDTD(self, flag: bool = True, /) -> None: ...
3131
def GetReparseDeferralEnabled(self) -> bool: ...
3232
def SetReparseDeferralEnabled(self, enabled: bool, /) -> None: ...
33-
# Added in Python 3.10.20, 3.11.15, 3.12.3, 3.13.10, 3.14.1
34-
def SetAllocTrackerActivationThreshold(self, threshold: int, /) -> None: ...
35-
def SetAllocTrackerMaximumAmplification(self, max_factor: float, /) -> None: ...
33+
if sys.version_info >= (3, 10):
34+
# Added in Python 3.10.20, 3.11.15, 3.12.3, 3.13.10, 3.14.1
35+
def SetAllocTrackerActivationThreshold(self, threshold: int, /) -> None: ...
36+
def SetAllocTrackerMaximumAmplification(self, max_factor: float, /) -> None: ...
3637

3738
@property
3839
def intern(self) -> dict[str, str]: ...

0 commit comments

Comments
 (0)