Skip to content

Commit e737d0c

Browse files
authored
Switch to mypy-dev 1.18.0a6 (#10527)
1 parent 7885bec commit e737d0c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,12 @@ repos:
131131
# TODO remove pydantic once 2.12.0 is released
132132
additional_dependencies:
133133
["Sphinx==7.4.3", "pydantic>=2.12.0a1;python_version>='3.14'"]
134-
- repo: https://github.com/pre-commit/mirrors-mypy
135-
rev: v1.17.1
134+
- repo: https://github.com/cdce8p/mypy-dev-pre-commit
135+
rev: v1.18.0a6
136136
hooks:
137137
- id: mypy
138138
name: mypy
139-
entry: mypy
140-
language: python
141-
types: [python]
142139
args: []
143-
require_serial: true
144140
additional_dependencies:
145141
["isort>=5", "platformdirs==2.2.0", "py==1.11", "tomlkit>=0.10.1"]
146142
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/

tests/test_self.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def __init__(self, reporters: list[BaseReporter]) -> None:
8282
self._reporters = reporters
8383
self.path_strip_prefix = os.getcwd() + os.sep
8484

85-
def on_set_current_module(self, *args: str, **kwargs: Any) -> None:
85+
def on_set_current_module(self, module: str, filepath: str | None) -> None:
8686
for rep in self._reporters:
87-
rep.on_set_current_module(*args, **kwargs)
87+
rep.on_set_current_module(module, filepath)
8888

8989
def handle_message(self, msg: Message) -> None:
9090
for rep in self._reporters:

0 commit comments

Comments
 (0)