Use "..." for attribute values, instead of None, [], {}

This commit is contained in:
Alvaro Caceres
2016-06-15 14:10:04 -05:00
parent f45c00f129
commit d0ac66f5f8
17 changed files with 49 additions and 49 deletions

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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

View File

@@ -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