File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2929 uvx ruff check
3030
3131mypy :
32- uvx mypy src
32+ uvx mypy --strict src
3333
3434test :
3535 uv run pytest -vv --cov=weechat_script_lint --cov-report=term-missing
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments