Fix errors in stubs when running in strict mode (#515)

This commit is contained in:
Danny Weinberg
2016-09-02 19:04:56 -07:00
committed by Guido van Rossum
parent 23c44d3e36
commit 708fd960da
2 changed files with 8 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ from typing import (
import logging
import sys
from types import ModuleType, TracebackType
from contextlib import ContextManager
_T = TypeVar('_T')
@@ -37,7 +38,7 @@ class TestCase:
def run(self, result: Optional[TestResult] = ...) -> TestCase: ...
def skipTest(self, reason: Any) -> None: ...
if sys.version_info >= (3, 4):
def subTest(self, msg: Any = ..., **params: Any) -> None: ...
def subTest(self, msg: Any = ..., **params: Any) -> ContextManager[None]: ...
def debug(self) -> None: ...
def assertEqual(self, first: Any, second: Any, msg: Any = ...) -> None: ...
def assertNotEqual(self, first: Any, second: Any,