diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6349c293..72e67c2c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.12 + rev: v0.16.1 hooks: - id: ruff-check args: [--fix, --unsafe-fixes] @@ -18,7 +18,7 @@ repos: args: ["-ignore", 'label ".+" is unknown'] - repo: https://github.com/adhtruong/mirrors-typos - rev: v1.46.0 + rev: v1.48.0 hooks: - id: typos args: [--force-exclude] # omitting --write-changes @@ -29,7 +29,7 @@ repos: - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.2 + rev: v2.3.0 hooks: - id: mypy exclude: tests|examples diff --git a/src/superqt/utils/_qthreading.py b/src/superqt/utils/_qthreading.py index c049aacb..464b23f9 100644 --- a/src/superqt/utils/_qthreading.py +++ b/src/superqt/utils/_qthreading.py @@ -411,7 +411,7 @@ def __init__( self._pause_interval = 0.01 self.pbar = None - def work(self) -> _R | None | Exception: + def work(self) -> _R | Exception | None: """Core event loop that calls the original function. Enters a continual loop, yielding and returning from the original