Skip to content

Commit

Permalink
Merge pull request #8279 from pytest-dev/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
bluetech committed Jan 26, 2021
2 parents 781b73b + dfe933c commit 0939c3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -47,7 +47,7 @@ repos:
hooks:
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
rev: v0.800
hooks:
- id: mypy
files: ^(src/|testing/)
Expand Down
7 changes: 3 additions & 4 deletions src/_pytest/threadexception.py
Expand Up @@ -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":
Expand Down

0 comments on commit 0939c3e

Please sign in to comment.