mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 10:21:14 +08:00
Fix errors in stubs when running in strict mode (#515)
This commit is contained in:
committed by
Guido van Rossum
parent
23c44d3e36
commit
708fd960da
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user