Skip to content

Commit 76bf77b

Browse files
committed
Run mypy in strict mode
1 parent a2c1193 commit 76bf77b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ruff:
2929
uvx ruff check
3030

3131
mypy:
32-
uvx mypy src
32+
uvx mypy --strict src
3333

3434
test:
3535
uv run pytest -vv --cov=weechat_script_lint --cov-report=term-missing

src/weechat_script_lint/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def search_regex(
207207
regex: str,
208208
flags: int = 0,
209209
max_lines: int = 1,
210-
) -> list[tuple[int, re.Match]]:
210+
) -> list[tuple[int, re.Match[str]]]:
211211
"""Search a regular expression in each line of the script.
212212
213213
A same line can be returned multiple times, if the string appears
@@ -233,7 +233,7 @@ def search_func(
233233
argument: str = "",
234234
flags: int = 0,
235235
max_lines: int = 2,
236-
) -> list[tuple[int, re.Match]]:
236+
) -> list[tuple[int, re.Match[str]]]:
237237
"""Search a call to a function with the given argument.
238238
239239
:param function: function (regex)

0 commit comments

Comments
 (0)