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 36
36
hooks :
37
37
- id : isort
38
38
- repo : https://github.com/pre-commit/mirrors-mypy
39
- rev : v0.991
39
+ rev : v1.3.0
40
40
hooks :
41
41
- id : mypy
42
42
additional_dependencies : [
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ def execute(
320
320
stmt = stmt .replace (f"%({ key } )s" .encode (), value )
321
321
elif isinstance (prepared , (list , tuple )):
322
322
psub = _ParamSubstitutor (prepared )
323
- stmt = RE_PY_PARAM .sub (psub , stmt )
323
+ stmt = RE_PY_PARAM .sub (psub , stmt ) # type: ignore[call-overload]
324
324
if psub .remaining != 0 :
325
325
raise ProgrammingError (
326
326
"Not all parameters were used in the SQL statement"
@@ -388,7 +388,7 @@ def remove_comments(match: re.Match) -> str:
388
388
tmp = tmp .replace (f"%({ key } )s" .encode (), value )
389
389
elif isinstance (prepared , (list , tuple )):
390
390
psub = _ParamSubstitutor (prepared )
391
- tmp = RE_PY_PARAM .sub (psub , tmp )
391
+ tmp = RE_PY_PARAM .sub (psub , tmp ) # type: ignore[call-overload]
392
392
if psub .remaining != 0 :
393
393
raise ProgrammingError (
394
394
"Not all parameters were used in the SQL statement"
You can’t perform that action at this time.
0 commit comments