diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a3ab100ca2..2862300b45 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -131,16 +131,12 @@ repos: # TODO remove pydantic once 2.12.0 is released additional_dependencies: ["Sphinx==7.4.3", "pydantic>=2.12.0a1;python_version>='3.14'"] - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + - repo: https://github.com/cdce8p/mypy-dev-pre-commit + rev: v1.18.0a6 hooks: - id: mypy name: mypy - entry: mypy - language: python - types: [python] args: [] - require_serial: true additional_dependencies: ["isort>=5", "platformdirs==2.2.0", "py==1.11", "tomlkit>=0.10.1"] exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ diff --git a/tests/test_self.py b/tests/test_self.py index 253b0875b0..99b50fcfd3 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -82,9 +82,9 @@ def __init__(self, reporters: list[BaseReporter]) -> None: self._reporters = reporters self.path_strip_prefix = os.getcwd() + os.sep - def on_set_current_module(self, *args: str, **kwargs: Any) -> None: + def on_set_current_module(self, module: str, filepath: str | None) -> None: for rep in self._reporters: - rep.on_set_current_module(*args, **kwargs) + rep.on_set_current_module(module, filepath) def handle_message(self, msg: Message) -> None: for rep in self._reporters: