Skip to content

Commit 2dbb5f0

Browse files
rr-gvanrossum
authored andcommitted
Fix unicodedata (#983)
Fixes #982.
1 parent 47a19c7 commit 2dbb5f0

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

stdlib/3/unicodedata.pyi

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
# Stubs for unicodedata (Python 3.4)
2-
#
3-
# NOTE: This dynamically typed stub was automatically generated by stubgen.
2+
from typing import Any, TypeVar, Union
43

5-
from typing import Any
6-
7-
ucd_3_2_0 = ... # type: Any
4+
ucd_3_2_0 = ... # type: UCD
85
ucnhash_CAPI = ... # type: Any
96
unidata_version = ... # type: str
107

11-
def bidirectional(unichr): ...
12-
def category(unichr): ...
13-
def combining(unichr): ...
14-
def decimal(chr, default=...): ...
15-
def decomposition(unichr): ...
16-
def digit(chr, default=...): ...
17-
def east_asian_width(unichr): ...
18-
def lookup(name): ...
19-
def mirrored(unichr): ...
20-
def name(chr, default=...): ...
21-
def normalize(form, unistr): ...
22-
def numeric(chr, default=...): ...
8+
_default = TypeVar('_default')
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: _default=...) -> Union[int, _default]: ...
14+
def decomposition(__chr: str) -> str: ...
15+
def digit(__chr: str, __default: _default=...) -> Union[int, _default]: ...
16+
def east_asian_width(__chr: str) -> str: ...
17+
def lookup(__name: Union[str, bytes]) -> str: ...
18+
def mirrored(__chr: str) -> int: ...
19+
def name(__chr: str, __default: _default=...) -> Union[str, _default]: ...
20+
def normalize(__form: str, __unistr: str) -> str: ...
21+
def numeric(__chr: str, __default: _default=...) -> Union[float, _default]: ...
2322

2423
class UCD:
25-
unidata_version = ... # type: Any
26-
def bidirectional(self, unichr): ...
27-
def category(self, unichr): ...
28-
def combining(self, unichr): ...
29-
def decimal(self, chr, default=...): ...
30-
def decomposition(self, unichr): ...
31-
def digit(self, chr, default=...): ...
32-
def east_asian_width(self, unichr): ...
33-
def lookup(self, name): ...
34-
def mirrored(self, unichr): ...
35-
def name(self, chr, default=...): ...
36-
def normalize(self, form, unistr): ...
37-
def numeric(self, chr, default=...): ...
24+
unidata_version = ... # type: str
25+
def bidirectional(self, __chr: str) -> str: ...
26+
def category(self, __chr: str) -> str: ...
27+
def combining(self, __chr: str) -> int: ...
28+
def decimal(self, __chr: str, __default: _default=...) -> Union[int, _default]: ...
29+
def decomposition(self, __chr: str) -> str: ...
30+
def digit(self, __chr: str, __default: _default=...) -> Union[int, _default]: ...
31+
def east_asian_width(self, __chr: str) -> str: ...
32+
def lookup(self, __name: Union[str, bytes]) -> str: ...
33+
def mirrored(self, __chr: str) -> int: ...
34+
def name(self, __chr: str, __default: _default=...) -> Union[str, _default]: ...
35+
def normalize(self, __form: str, __unistr: str) -> str: ...
36+
def numeric(self, __chr: str, __default: _default=...) -> Union[float, _default]: ...

0 commit comments

Comments
 (0)