mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-24 18:48:46 +08:00
Apply fixes, remove duplicates.
Apply fixes to _random, cStringIO, errno, operator, sys, zlib, etc.; also, remove duplicate 2.7/math.pyi, 2.7/marshal.pyi.
This commit is contained in:
@@ -1,37 +1,39 @@
|
||||
# Stubs for unicodedata (Python 2.7)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
"""Stubs for the 'unicodedata' module."""
|
||||
|
||||
from typing import Any
|
||||
from typing import Any, TypeVar
|
||||
|
||||
ucd_3_2_0 = ... # type: Any
|
||||
ucnhash_CAPI = ... # type: Any
|
||||
ucd_3_2_0 = ... # type: UCD
|
||||
ucnhash_CAPI = ... # type: Any (PyCapsule)
|
||||
unidata_version = ... # type: str
|
||||
|
||||
def bidirectional(unichr): ...
|
||||
def category(unichr): ...
|
||||
def combining(unichr): ...
|
||||
def decimal(chr, default=...): ...
|
||||
def decomposition(unichr): ...
|
||||
def digit(chr, default=...): ...
|
||||
def east_asian_width(unichr): ...
|
||||
def lookup(name): ...
|
||||
def mirrored(unichr): ...
|
||||
def name(chr, default=...): ...
|
||||
def normalize(form: str, unistr: unicode) -> unicode: ...
|
||||
def numeric(chr, default=...): ...
|
||||
_default = TypeVar("default")
|
||||
|
||||
class UCD:
|
||||
unidata_version = ... # type: Any
|
||||
def bidirectional(self, unichr): ...
|
||||
def category(self, unichr): ...
|
||||
def combining(self, unichr): ...
|
||||
def decimal(self, chr, default=...): ...
|
||||
def decomposition(self, unichr): ...
|
||||
def digit(self, chr, default=...): ...
|
||||
def east_asian_width(self, unichr): ...
|
||||
def lookup(self, name): ...
|
||||
def mirrored(self, unichr): ...
|
||||
def name(self, chr, default=...): ...
|
||||
def normalize(self, form, unistr): ...
|
||||
def numeric(self, chr, default=...): ...
|
||||
def bidirectional(unichr: unicode) -> str: ...
|
||||
def category(unichr: unicode) -> str: ...
|
||||
def combining(unichr: unicode) -> int: ...
|
||||
def decimal(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def decomposition(unichr: unicode) -> str: ...
|
||||
def digit(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def east_asian_width(unichr: unicode): str
|
||||
def lookup(name: str): unicode
|
||||
def mirrored(unichr: unicode): int
|
||||
def name(chr: unicode, default=_default) -> Union[str, _default]: ...
|
||||
def normalize(form: str, unistr: unicode) -> unicode: ...
|
||||
def numeric(chr, default=_default): Union[float, _default]: ...
|
||||
|
||||
class UCD(object):
|
||||
unidata_version = ... # type: str
|
||||
# The methods below are constructed from the same array in C
|
||||
# (unicodedata_functions) and hence identical to the methods above.
|
||||
def bidirectional(unichr: unicode) -> str: ...
|
||||
def category(unichr: unicode) -> str: ...
|
||||
def combining(unichr: unicode) -> int: ...
|
||||
def decimal(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def decomposition(unichr: unicode) -> str: ...
|
||||
def digit(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def east_asian_width(unichr: unicode): str
|
||||
def lookup(name: str): unicode
|
||||
def mirrored(unichr: unicode): int
|
||||
def name(chr: unicode, default=_default) -> Union[str, _default]: ...
|
||||
def normalize(form: str, unistr: unicode) -> unicode: ...
|
||||
def numeric(chr, default=_default): Union[float, _default]: ...
|
||||
|
||||
Reference in New Issue
Block a user