mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
50 lines
1.9 KiB
Python
50 lines
1.9 KiB
Python
import sys
|
|
from _typeshed import ReadOnlyBuffer
|
|
from typing import Any, TypeVar
|
|
from typing_extensions import final
|
|
|
|
ucd_3_2_0: UCD
|
|
unidata_version: str
|
|
|
|
if sys.version_info < (3, 10):
|
|
ucnhash_CAPI: Any
|
|
|
|
_T = TypeVar("_T")
|
|
|
|
def bidirectional(__chr: str) -> str: ...
|
|
def category(__chr: str) -> str: ...
|
|
def combining(__chr: str) -> int: ...
|
|
def decimal(__chr: str, __default: _T = ...) -> int | _T: ...
|
|
def decomposition(__chr: str) -> str: ...
|
|
def digit(__chr: str, __default: _T = ...) -> int | _T: ...
|
|
def east_asian_width(__chr: str) -> str: ...
|
|
|
|
if sys.version_info >= (3, 8):
|
|
def is_normalized(__form: str, __unistr: str) -> bool: ...
|
|
|
|
def lookup(__name: str | ReadOnlyBuffer) -> str: ...
|
|
def mirrored(__chr: str) -> int: ...
|
|
def name(__chr: str, __default: _T = ...) -> str | _T: ...
|
|
def normalize(__form: str, __unistr: str) -> str: ...
|
|
def numeric(__chr: str, __default: _T = ...) -> float | _T: ...
|
|
@final
|
|
class UCD:
|
|
# The methods below are constructed from the same array in C
|
|
# (unicodedata_functions) and hence identical to the methods above.
|
|
unidata_version: str
|
|
def bidirectional(self, __chr: str) -> str: ...
|
|
def category(self, __chr: str) -> str: ...
|
|
def combining(self, __chr: str) -> int: ...
|
|
def decimal(self, __chr: str, __default: _T = ...) -> int | _T: ...
|
|
def decomposition(self, __chr: str) -> str: ...
|
|
def digit(self, __chr: str, __default: _T = ...) -> int | _T: ...
|
|
def east_asian_width(self, __chr: str) -> str: ...
|
|
if sys.version_info >= (3, 8):
|
|
def is_normalized(self, __form: str, __unistr: str) -> bool: ...
|
|
|
|
def lookup(self, __name: str | ReadOnlyBuffer) -> str: ...
|
|
def mirrored(self, __chr: str) -> int: ...
|
|
def name(self, __chr: str, __default: _T = ...) -> str | _T: ...
|
|
def normalize(self, __form: str, __unistr: str) -> str: ...
|
|
def numeric(self, __chr: str, __default: _T = ...) -> float | _T: ...
|