Remove a few files from the pytype blacklist. (#1628)

Fixes the following issues:

* Literals rather than ... for default values
* None rather than ... for default value of typed variable
* Literals rather than ... # type for top level constants
* # Foo rather than # type: Foo
* return value of init not set to None
This commit is contained in:
Martin DeMello
2017-09-27 07:57:13 -07:00
committed by Matthias Kramm
parent d14272a14f
commit d389ef3d85
8 changed files with 29 additions and 58 deletions

View File

@@ -11,12 +11,12 @@ if sys.version_info >= (3, 5):
def __init__(self, msg: str, doc: str, pos: int) -> None: ...
class JSONDecoder:
object_hook = None # type: Callable[[Dict[str, Any]], Any]
parse_float = ... # Callable[[str], Any]
parse_int = ... # Callable[[str], Any]
object_hook = ... # type: Callable[[Dict[str, Any]], Any]
parse_float = ... # type: Callable[[str], Any]
parse_int = ... # type: Callable[[str], Any]
parse_constant = ... # Callable[[str], Any]
strict = ... # type: bool
object_pairs_hook = None # type: Callable[[List[Tuple[str, Any]]], Any]
object_pairs_hook = ... # type: Callable[[List[Tuple[str, Any]]], Any]
def __init__(self, object_hook: Optional[Callable[[Dict[str, Any]], Any]] = None,
parse_float: Optional[Callable[[str], Any]] = None,

View File

@@ -9,7 +9,7 @@ class JSONEncoder:
check_circular = ... # type: bool
allow_nan = ... # type: bool
sort_keys = ... # type: bool
indent = None # type: int
indent = ... # type: int
def __init__(self, skipkeys: bool = ..., ensure_ascii: bool = ...,
check_circular: bool = ..., allow_nan: bool = ..., sort_keys: bool = ...,