mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use "..." for attribute values, instead of None, [], {}
This commit is contained in:
@@ -35,7 +35,7 @@ class MutableString(UserString, MutableSequence): ...
|
||||
# Technically, deque only derives from MutableSequence in 3.5.
|
||||
# But in practice it's not worth losing sleep over.
|
||||
class deque(MutableSequence[_T], Generic[_T]):
|
||||
maxlen = 0 # type: Optional[int] # TODO readonly
|
||||
maxlen = ... # type: Optional[int] # TODO readonly
|
||||
def __init__(self, iterable: Iterable[_T] = ...,
|
||||
maxlen: int = ...) -> None: ...
|
||||
def append(self, x: _T) -> None: ...
|
||||
|
||||
@@ -15,9 +15,9 @@ import os.path as path
|
||||
|
||||
supports_bytes_environ = False # TODO: True when bytes implemented?
|
||||
|
||||
SEEK_SET = 0 # type: int
|
||||
SEEK_CUR = 1 # type: int
|
||||
SEEK_END = 2 # type: int
|
||||
SEEK_SET = 0
|
||||
SEEK_CUR = 0
|
||||
SEEK_END = 0
|
||||
|
||||
O_RDONLY = 0
|
||||
O_WRONLY = 0
|
||||
|
||||
@@ -56,7 +56,7 @@ OP = 0
|
||||
ERRORTOKEN = 0
|
||||
N_TOKENS = 0
|
||||
NT_OFFSET = 0
|
||||
tok_name = {} # type: Dict[int, str]
|
||||
tok_name = ... # type: Dict[int, str]
|
||||
|
||||
def ISTERMINAL(x: int) -> bool: pass
|
||||
def ISNONTERMINAL(x: int) -> bool: pass
|
||||
|
||||
@@ -19,12 +19,12 @@ __all__ = (
|
||||
'unquote_to_bytes'
|
||||
)
|
||||
|
||||
uses_relative = [] # type: List[str]
|
||||
uses_netloc = [] # type: List[str]
|
||||
uses_params = [] # type: List[str]
|
||||
non_hierarchical = [] # type: List[str]
|
||||
uses_query = [] # type: List[str]
|
||||
uses_fragment = [] # type: List[str]
|
||||
uses_relative = ... # type: List[str]
|
||||
uses_netloc = ... # type: List[str]
|
||||
uses_params = ... # type: List[str]
|
||||
non_hierarchical = ... # type: List[str]
|
||||
uses_query = ... # type: List[str]
|
||||
uses_fragment = ... # type: List[str]
|
||||
scheme_chars = ... # type: str
|
||||
MAX_CACHE_SIZE = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user