@@ -26,10 +26,6 @@ def digit(chr: str, /) -> int: ...
2626@overload
2727def 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
3531def east_asian_width (chr : str , / ) -> _EastAsianWidth : ...
@@ -45,6 +41,11 @@ def normalize(form: _NormalizationForm, unistr: str, /) -> str: ...
4541def numeric (chr : str , / ) -> float : ...
4642@overload
4743def 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
4950class 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