Skip to content

Commit adeffd3

Browse files
Move isxidstart and isxidcontinue to conditional block
1 parent d827401 commit adeffd3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

stdlib/unicodedata.pyi

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ def digit(chr: str, /) -> int: ...
2626
@overload
2727
def digit(chr: str, default: _T, /) -> int | _T: ...
2828

29-
if sys.version_info >= (3, 15):
30-
def isxidstart(chr: str, /) -> bool: ...
31-
def isxidcontinue(chr: str, /) -> bool: ...
32-
3329
_EastAsianWidth: TypeAlias = Literal["F", "H", "W", "Na", "A", "N"]
3430

3531
def east_asian_width(chr: str, /) -> _EastAsianWidth: ...
@@ -45,6 +41,11 @@ def normalize(form: _NormalizationForm, unistr: str, /) -> str: ...
4541
def numeric(chr: str, /) -> float: ...
4642
@overload
4743
def numeric(chr: str, default: _T, /) -> float | _T: ...
44+
45+
if sys.version_info >= (3, 15):
46+
def isxidstart(chr: str, /) -> bool: ...
47+
def isxidcontinue(chr: str, /) -> bool: ...
48+
4849
@final
4950
class UCD:
5051
# The methods below are constructed from the same array in C
@@ -75,3 +76,7 @@ class UCD:
7576
def numeric(self, chr: str, /) -> float: ...
7677
@overload
7778
def numeric(self, chr: str, default: _T, /) -> float | _T: ...
79+
80+
if sys.version_info >= (3, 15):
81+
def isxidstart(chr: str, /) -> bool: ...
82+
def isxidcontinue(chr: str, /) -> bool: ...

0 commit comments

Comments
 (0)