diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2021-01-25 15:21:08 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2021-01-25 15:23:13 -0300 |
commit | dfe933cdb4a1885f98c0067701c06c34aa388006 (patch) | |
tree | 76b223b7ed88d82bb40ac3d9742230737ff343c5 /src | |
parent | 6806091b9346e930a8029f4c07b66a987db9855a (diff) | |
download | pytest-dfe933cdb4a1885f98c0067701c06c34aa388006.tar.gz |
Remove mypy workaround after 0.800 update
Diffstat (limited to 'src')
-rw-r--r-- | src/_pytest/threadexception.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/_pytest/threadexception.py b/src/_pytest/threadexception.py index d084dc6e6..b250a5234 100644 --- a/src/_pytest/threadexception.py +++ b/src/_pytest/threadexception.py @@ -34,11 +34,10 @@ class catch_threading_exception: """ def __init__(self) -> None: - # See https://github.com/python/typeshed/issues/4767 regarding the underscore. - self.args: Optional["threading._ExceptHookArgs"] = None - self._old_hook: Optional[Callable[["threading._ExceptHookArgs"], Any]] = None + self.args: Optional["threading.ExceptHookArgs"] = None + self._old_hook: Optional[Callable[["threading.ExceptHookArgs"], Any]] = None - def _hook(self, args: "threading._ExceptHookArgs") -> None: + def _hook(self, args: "threading.ExceptHookArgs") -> None: self.args = args def __enter__(self) -> "catch_threading_exception": |