Add undocumented methods and make types more specific in 2/unittest (#3550)

This commit is contained in:
Jan Verbeek
2019-12-19 18:17:14 +01:00
committed by Sebastian Rittau
parent 9d61baa7be
commit a705d59479
2 changed files with 27 additions and 17 deletions

View File

@@ -1,11 +1,12 @@
from typing import List, Optional, Tuple, Type
from typing import List, Optional, Tuple, Type, Union
from types import TracebackType
import unittest.case
_SysExcInfoType = Tuple[Optional[Type[BaseException]],
Optional[BaseException],
Optional[TracebackType]]
_SysExcInfoType = Union[
Tuple[Type[BaseException], BaseException, TracebackType],
Tuple[None, None, None],
]
class TestResult: