mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -1,9 +1,9 @@
|
||||
# Stubs for unicodedata (Python 2.7 and 3.4)
|
||||
from typing import Any, Text, TypeVar, Union
|
||||
|
||||
ucd_3_2_0 = ... # type: UCD
|
||||
ucnhash_CAPI = ... # type: Any
|
||||
unidata_version = ... # type: str
|
||||
ucd_3_2_0: UCD
|
||||
ucnhash_CAPI: Any
|
||||
unidata_version: str
|
||||
|
||||
_default = TypeVar('_default')
|
||||
|
||||
@@ -23,7 +23,7 @@ def numeric(__chr: Text, __default: _default = ...) -> Union[float, _default]: .
|
||||
class UCD(object):
|
||||
# The methods below are constructed from the same array in C
|
||||
# (unicodedata_functions) and hence identical to the methods above.
|
||||
unidata_version = ... # type: str
|
||||
unidata_version: str
|
||||
def bidirectional(self, __chr: Text) -> str: ...
|
||||
def category(self, __chr: Text) -> str: ...
|
||||
def combining(self, __chr: Text) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user