Two small changes to help the mypy test suite pass (#355)

* Condition arg for skip{If,Unless} should be object, not bool.

* Env arg to os.get_exec_path() is a Mapping, not a Dict.
This commit is contained in:
Guido van Rossum
2016-07-12 14:10:36 -07:00
committed by David Fisher
parent b48ddf7532
commit 1c4662d2f3
2 changed files with 3 additions and 3 deletions

View File

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