mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
fix bugs in builtins/2.7/*.pyi
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
"""Stubs for the 'unicodedata' module."""
|
||||
|
||||
from typing import Any, TypeVar
|
||||
from typing import Any, TypeVar, Union, Optional
|
||||
|
||||
ucd_3_2_0 = ... # type: UCD
|
||||
ucnhash_CAPI = ... # type: Any (PyCapsule)
|
||||
unidata_version = ... # type: str
|
||||
# PyCapsule
|
||||
ucnhash_CAPI = ... # type: Any
|
||||
|
||||
_default = TypeVar("default")
|
||||
_default = TypeVar("_default")
|
||||
|
||||
def bidirectional(unichr: unicode) -> str: ...
|
||||
def category(unichr: unicode) -> str: ...
|
||||
@@ -19,7 +20,7 @@ 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]: ...
|
||||
def numeric(chr, default=_default) -> Union[float, _default]: ...
|
||||
|
||||
class UCD(object):
|
||||
unidata_version = ... # type: str
|
||||
@@ -36,4 +37,4 @@ class UCD(object):
|
||||
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]: ...
|
||||
def numeric(chr, default=_default) -> Union[float, _default]: ...
|
||||
|
||||
Reference in New Issue
Block a user