Skip to content

Commit 3ccc326

Browse files
Merge pull request #34 from RudolfCardinal/mypy-dev
Fix syntax errors found when running MyPy on CamCOPS
2 parents fa990bc + 9e35de6 commit 3ccc326

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cardinal_pythonlib/json/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def dict_to_pendulumdate(
807807
# noinspection PyTypeChecker
808808
dt = pendulum.parse(d["iso"]) # type: pendulum.DateTime
809809
# noinspection PyTypeChecker
810-
return dt.date() # type: pendulum.Date
810+
return dt.date()
811811

812812

813813
register_class_for_json(

cardinal_pythonlib/sqlalchemy/dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_preparer(
148148
"""
149149
dialect = get_dialect(mixed)
150150
# noinspection PyUnresolvedReferences
151-
return dialect.preparer(dialect) # type: IdentifierPreparer
151+
return dialect.preparer(dialect)
152152

153153

154154
def quote_identifier(

0 commit comments

Comments
 (0)