mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -2,7 +2,7 @@
|
||||
import sys
|
||||
from typing import AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Tuple, Union, Text
|
||||
|
||||
DEFAULT_IGNORES = ... # type: List[str]
|
||||
DEFAULT_IGNORES: List[str]
|
||||
|
||||
def cmp(f1: Union[bytes, Text], f2: Union[bytes, Text], shallow: Union[int, bool] = ...) -> bool: ...
|
||||
def cmpfiles(a: AnyStr, b: AnyStr, common: Iterable[AnyStr],
|
||||
@@ -13,30 +13,30 @@ class dircmp(Generic[AnyStr]):
|
||||
ignore: Optional[Sequence[AnyStr]] = ...,
|
||||
hide: Optional[Sequence[AnyStr]] = ...) -> None: ...
|
||||
|
||||
left = ... # type: AnyStr
|
||||
right = ... # type: AnyStr
|
||||
hide = ... # type: Sequence[AnyStr]
|
||||
ignore = ... # type: Sequence[AnyStr]
|
||||
left: AnyStr
|
||||
right: AnyStr
|
||||
hide: Sequence[AnyStr]
|
||||
ignore: Sequence[AnyStr]
|
||||
|
||||
# These properties are created at runtime by __getattr__
|
||||
subdirs = ... # type: Dict[AnyStr, dircmp[AnyStr]]
|
||||
same_files = ... # type: List[AnyStr]
|
||||
diff_files = ... # type: List[AnyStr]
|
||||
funny_files = ... # type: List[AnyStr]
|
||||
common_dirs = ... # type: List[AnyStr]
|
||||
common_files = ... # type: List[AnyStr]
|
||||
common_funny = ... # type: List[AnyStr]
|
||||
common = ... # type: List[AnyStr]
|
||||
left_only = ... # type: List[AnyStr]
|
||||
right_only = ... # type: List[AnyStr]
|
||||
left_list = ... # type: List[AnyStr]
|
||||
right_list = ... # type: List[AnyStr]
|
||||
subdirs: Dict[AnyStr, dircmp[AnyStr]]
|
||||
same_files: List[AnyStr]
|
||||
diff_files: List[AnyStr]
|
||||
funny_files: List[AnyStr]
|
||||
common_dirs: List[AnyStr]
|
||||
common_files: List[AnyStr]
|
||||
common_funny: List[AnyStr]
|
||||
common: List[AnyStr]
|
||||
left_only: List[AnyStr]
|
||||
right_only: List[AnyStr]
|
||||
left_list: List[AnyStr]
|
||||
right_list: List[AnyStr]
|
||||
|
||||
def report(self) -> None: ...
|
||||
def report_partial_closure(self) -> None: ...
|
||||
def report_full_closure(self) -> None: ...
|
||||
|
||||
methodmap = ... # type: Dict[str, Callable[[], None]]
|
||||
methodmap: Dict[str, Callable[[], None]]
|
||||
def phase0(self) -> None: ...
|
||||
def phase1(self) -> None: ...
|
||||
def phase2(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user