Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions stdlib/unicodedata.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: ...