From 2e5805dd3914edf34d6aa05ad131f04f513ed808 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 12 Jul 2016 09:24:21 -0700 Subject: [PATCH 1/2] Condition arg for skip{If,Unless} should be object, not bool. --- stdlib/3/unittest.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/unittest.pyi b/stdlib/3/unittest.pyi index 500a2368e92c..41fe554120bf 100644 --- a/stdlib/3/unittest.pyi +++ b/stdlib/3/unittest.pyi @@ -15,8 +15,8 @@ _FT = TypeVar('_FT', Callable[[Any], Any]) def skip(reason: str) -> Callable[[_FT], _FT]: ... -def skipIf(condition: bool, reason: str) -> Callable[[_FT], _FT]: ... -def skipUnless(condition: bool, reason: str) -> Callable[[_FT], _FT]: ... +def skipIf(condition: object, reason: str) -> Callable[[_FT], _FT]: ... +def skipUnless(condition: object, reason: str) -> Callable[[_FT], _FT]: ... def expectedFailure(func: _FT) -> _FT: ... class SkipTest(Exception): From 659113efbad67c66b63cb5bca02ccfb7867e7518 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 12 Jul 2016 09:38:09 -0700 Subject: [PATCH 2/2] Env arg to os.get_exec_path() is a Mapping, not a Dict. --- stdlib/3/os/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index 142961e7a4f9..be9cbbda58cd 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -159,7 +159,7 @@ class statvfs_result: # Unix only # ----- os function stubs ----- def fsencode(filename: str) -> bytes: ... def fsdecode(filename: bytes) -> str: ... -def get_exec_path(env: Optional[Dict[str, str]] = ...) -> List[str] : ... +def get_exec_path(env: Optional[Mapping[str, str]] = ...) -> List[str] : ... # NOTE: get_exec_path(): returns List[bytes] when env not None def ctermid() -> str: ... # Unix only def getegid() -> int: ... # Unix only