diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2af4b00..802fc4a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: args: [--profile=black] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.971 + rev: v0.981 hooks: - id: mypy args: ["--config-file", "pyproject.toml"] diff --git a/traitlets/traitlets.py b/traitlets/traitlets.py index cbbaad2b..7489d019 100644 --- a/traitlets/traitlets.py +++ b/traitlets/traitlets.py @@ -1285,7 +1285,7 @@ def __setstate__(self, state): if isinstance(value, EventHandler): value.instance_init(self) - @property # type:ignore[misc] + @property @contextlib.contextmanager def cross_validation_lock(self): """