massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / unicodedata.pyi
1 import sys
2 from typing import Any, TypeVar
3
4 ucd_3_2_0: UCD
5 ucnhash_CAPI: Any
6 unidata_version: str
7
8 _T = TypeVar("_T")
9
10 def bidirectional(__chr: str) -> str: ...
11 def category(__chr: str) -> str: ...
12 def combining(__chr: str) -> int: ...
13 def decimal(__chr: str, __default: _T = ...) -> int | _T: ...
14 def decomposition(__chr: str) -> str: ...
15 def digit(__chr: str, __default: _T = ...) -> int | _T: ...
16 def east_asian_width(__chr: str) -> str: ...
17
18 if sys.version_info >= (3, 8):
19     def is_normalized(__form: str, __unistr: str) -> bool: ...
20
21 def lookup(__name: str | bytes) -> str: ...
22 def mirrored(__chr: str) -> int: ...
23 def name(__chr: str, __default: _T = ...) -> str | _T: ...
24 def normalize(__form: str, __unistr: str) -> str: ...
25 def numeric(__chr: str, __default: _T = ...) -> float | _T: ...
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: str) -> str: ...
32     def category(self, __chr: str) -> str: ...
33     def combining(self, __chr: str) -> int: ...
34     def decimal(self, __chr: str, __default: _T = ...) -> int | _T: ...
35     def decomposition(self, __chr: str) -> str: ...
36     def digit(self, __chr: str, __default: _T = ...) -> int | _T: ...
37     def east_asian_width(self, __chr: str) -> str: ...
38     def lookup(self, __name: str | bytes) -> str: ...
39     def mirrored(self, __chr: str) -> int: ...
40     def name(self, __chr: str, __default: _T = ...) -> str | _T: ...
41     def normalize(self, __form: str, __unistr: str) -> str: ...
42     def numeric(self, __chr: str, __default: _T = ...) -> float | _T: ...