|
| 1 | +import sys |
1 | 2 | from _typeshed import ReadableBuffer, SupportsRead |
2 | 3 | from collections.abc import Callable |
3 | 4 | from pyexpat import errors as errors, model as model |
4 | 5 | from typing import Any, Final, final |
5 | | -from psycopg2.extensions import Int |
6 | 6 | from typing_extensions import CapsuleType, TypeAlias |
7 | 7 | from xml.parsers.expat import ExpatError as ExpatError |
8 | 8 |
|
@@ -30,9 +30,10 @@ class XMLParserType: |
30 | 30 | def UseForeignDTD(self, flag: bool = True, /) -> None: ... |
31 | 31 | def GetReparseDeferralEnabled(self) -> bool: ... |
32 | 32 | 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: ... |
36 | 37 |
|
37 | 38 | @property |
38 | 39 | def intern(self) -> dict[str, str]: ... |
|
0 commit comments