Skip to content

Commit

Permalink
Merge pull request #1052 from burningmantech/dependabot/pip/mypy-1.7.1
Browse files Browse the repository at this point in the history
Bump mypy from 1.5.1 to 1.8.0
  • Loading branch information
wsanchez authored Feb 1, 2024
2 parents 34a895e + b53833d commit 4a97642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements/requirements-mypy.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Note: mypy-zope pins the mypy version

mypy==1.5.1
mypy==1.8.0
mypy-zope==1.0.3

types-PyMySQL==1.1.0.1
Expand Down
5 changes: 1 addition & 4 deletions src/ims/ext/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def cursor( # type: ignore[override]
"""
See :meth:`sqlite3.Cursor.cursor`.
"""
return cast(
"Cursor",
super().cursor(factory=factory), # type: ignore[call-overload]
)
return super().cursor(factory=factory)

def executeAndPrint(
self, sql: str, parameters: Parameters | None = None
Expand Down
2 changes: 1 addition & 1 deletion src/ims/model/json/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
log = Logger()


JSON = Union[Mapping[str, Any], Iterable, int, str, float, bool, None]
JSON = Union[Mapping[str, Any], Iterable[Any], int, str, float, bool, None]


class JSONCodecError(Exception):
Expand Down

0 comments on commit 4a97642

Please sign in to comment.