diff --git a/stdlib/unicodedata.pyi b/stdlib/unicodedata.pyi index 9fff042f0b96..caa2b7508442 100644 --- a/stdlib/unicodedata.pyi +++ b/stdlib/unicodedata.pyi @@ -41,6 +41,11 @@ def normalize(form: _NormalizationForm, unistr: str, /) -> str: ... def numeric(chr: str, /) -> float: ... @overload def numeric(chr: str, default: _T, /) -> float | _T: ... + +if sys.version_info >= (3, 15): + def isxidstart(chr: str, /) -> bool: ... + def isxidcontinue(chr: str, /) -> bool: ... + @final class UCD: # The methods below are constructed from the same array in C @@ -71,3 +76,7 @@ class UCD: def numeric(self, chr: str, /) -> float: ... @overload def numeric(self, chr: str, default: _T, /) -> float | _T: ... + + if sys.version_info >= (3, 15): + def isxidstart(chr: str, /) -> bool: ... + def isxidcontinue(chr: str, /) -> bool: ...