Format: application/octet-stream
1 import sys
2 from typing import Any, Text, TypeVar, Union
3
4 ucd_3_2_0: UCD
5 ucnhash_CAPI: Any
6 unidata_version: str
7
8 _default = TypeVar("_default")
9
10 def bidirectional(__chr: Text) -> Text: ...
11 def category(__chr: Text) -> Text: ...
12 def combining(__chr: Text) -> int: ...
13 def decimal(__chr: Text, __default: _default = ...) -> Union[int, _default]: ...
14 def decomposition(__chr: Text) -> Text: ...
15 def digit(__chr: Text, __default: _default = ...) -> Union[int, _default]: ...
16 def east_asian_width(__chr: Text) -> Text: ...
17
18 if sys.version_info >= (3, 8):
19 def is_normalized(__form: str, __unistr: str) -> bool: ...
20
21 def lookup(__name: Union[Text, bytes]) -> Text: ...
22 def mirrored(__chr: Text) -> int: ...
23 def name(__chr: Text, __default: _default = ...) -> Union[Text, _default]: ...
24 def normalize(__form: Text, __unistr: Text) -> Text: ...
25 def numeric(__chr: Text, __default: _default = ...) -> Union[float, _default]: ...
26
27 class UCD(object):
28 # The methods below are constructed from the same array in C
29 # (unicodedata_functions) and hence identical to the methods above.
30 unidata_version: str
31 def bidirectional(self, __chr: Text) -> str: ...
32 def category(self, __chr: Text) -> str: ...
33 def combining(self, __chr: Text) -> int: ...
34 def decimal(self, __chr: Text, __default: _default = ...) -> Union[int, _default]: ...
35 def decomposition(self, __chr: Text) -> str: ...
36 def digit(self, __chr: Text, __default: _default = ...) -> Union[int, _default]: ...
37 def east_asian_width(self, __chr: Text) -> str: ...
38 def lookup(self, __name: Union[Text, bytes]) -> Text: ...
39 def mirrored(self, __chr: Text) -> int: ...
40 def name(self, __chr: Text, __default: _default = ...) -> Union[Text, _default]: ...
41 def normalize(self, __form: Text, __unistr: Text) -> Text: ...
42 def numeric(self, __chr: Text, __default: _default = ...) -> Union[float, _default]: ...
43