From e70be5fbe243ac473d8dfbd92b3d6df370c30b0d Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 9 Sep 2016 06:30:36 -0700 Subject: [PATCH] trim pytype testing blacklist (#527) --- stdlib/2and3/plistlib.pyi | 17 +++++++++-------- tests/pytype_blacklist.txt | 8 -------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/stdlib/2and3/plistlib.pyi b/stdlib/2and3/plistlib.pyi index a367c7a00..86e95df11 100644 --- a/stdlib/2and3/plistlib.pyi +++ b/stdlib/2and3/plistlib.pyi @@ -36,14 +36,15 @@ def readPlist(pathOrFile: Union[_Path, IO[bytes]]) -> DictT[str, Any]: ... def writePlist(value: Mapping[str, Any], pathOrFile: Union[_Path, IO[bytes]]) -> None: ... def readPlistFromBytes(data: bytes) -> DictT[str, Any]: ... def writePlistToBytes(value: Mapping[str, Any]) -> bytes: ... -if sys.version_info < (3,) and sys.platform == 'darwin': - def readPlistFromResource(path: _Path, restype: str = ..., - resid: int = ...) -> DictT[str, Any]: ... - def writePlistToResource(rootObject: Mapping[str, Any], path: _Path, - restype: str = ..., - resid: int = ...) -> None: ... - def readPlistFromString(data: str) -> DictT[str, Any]: ... - def writePlistToString(rootObject: Mapping[str, Any]) -> str: ... +if sys.version_info < (3,): + if sys.platform == 'darwin': + def readPlistFromResource(path: _Path, restype: str = ..., + resid: int = ...) -> DictT[str, Any]: ... + def writePlistToResource(rootObject: Mapping[str, Any], path: _Path, + restype: str = ..., + resid: int = ...) -> None: ... + def readPlistFromString(data: str) -> DictT[str, Any]: ... + def writePlistToString(rootObject: Mapping[str, Any]) -> str: ... if sys.version_info >= (3,): class Dict(dict): diff --git a/tests/pytype_blacklist.txt b/tests/pytype_blacklist.txt index 552f60b5c..881e7413e 100644 --- a/tests/pytype_blacklist.txt +++ b/tests/pytype_blacklist.txt @@ -1,18 +1,10 @@ # Pytype blacklist. Files will not be tested with pytype. 2.7/__builtin__.pyi -2.7/StringIO.pyi 2.7/builtins.pyi -2.7/codecs.pyi -2.7/inspect.pyi -2.7/pydoc.pyi 2.7/types.pyi 2.7/typing.pyi -2.7/xml/dom/minidom.pyi 2and3/argparse.pyi 2and3/logging/handlers.pyi -2and3/logging/__init__.pyi -2and3/mmap.pyi -2and3/plistlib.pyi 2and3/tarfile.pyi 2and3/webbrowser.pyi