1 # Stubs for unicodedata (Python 2.7 and 3.4)
\r
2 from typing import Any, Text, TypeVar, Union
\r
4 ucd_3_2_0 = ... # type: UCD
\r
5 ucnhash_CAPI = ... # type: Any
\r
6 unidata_version = ... # type: str
\r
8 _default = TypeVar('_default')
\r
10 def bidirectional(__chr: Text) -> Text: ...
\r
11 def category(__chr: Text) -> Text: ...
\r
12 def combining(__chr: Text) -> int: ...
\r
13 def decimal(__chr: Text, __default: _default=...) -> Union[int, _default]: ...
\r
14 def decomposition(__chr: Text) -> Text: ...
\r
15 def digit(__chr: Text, __default: _default=...) -> Union[int, _default]: ...
\r
16 def east_asian_width(__chr: Text) -> Text: ...
\r
17 def lookup(__name: Union[Text, bytes]) -> Text: ...
\r
18 def mirrored(__chr: Text) -> int: ...
\r
19 def name(__chr: Text, __default: _default=...) -> Union[Text, _default]: ...
\r
20 def normalize(__form: Text, __unistr: Text) -> Text: ...
\r
21 def numeric(__chr: Text, __default: _default=...) -> Union[float, _default]: ...
\r
24 # The methods below are constructed from the same array in C
\r
25 # (unicodedata_functions) and hence identical to the methods above.
\r
26 unidata_version = ... # type: str
\r
27 def bidirectional(self, __chr: Text) -> str: ...
\r
28 def category(self, __chr: Text) -> str: ...
\r
29 def combining(self, __chr: Text) -> int: ...
\r
30 def decimal(self, __chr: Text, __default: _default=...) -> Union[int, _default]: ...
\r
31 def decomposition(self, __chr: Text) -> str: ...
\r
32 def digit(self, __chr: Text, __default: _default=...) -> Union[int, _default]: ...
\r
33 def east_asian_width(self, __chr: Text) -> str: ...
\r
34 def lookup(self, __name: Union[Text, bytes]) -> Text: ...
\r
35 def mirrored(self, __chr: Text) -> int: ...
\r
36 def name(self, __chr: Text, __default: _default=...) -> Union[Text, _default]: ...
\r
37 def normalize(self, __form: Text, __unistr: Text) -> Text: ...
\r
38 def numeric(self, __chr: Text, __default: _default=...) -> Union[float, _default]: ...
\r