Skip to content

Commit

Permalink
Mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed May 30, 2024
1 parent 73ac3f5 commit 59e9841
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lms/pshell.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# type: ignore
import os
import sys
from contextlib import suppress
Expand Down
2 changes: 1 addition & 1 deletion lms/services/hubspot/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ def date_or_timestamp(value: str | int | None) -> str | None:
return datetime.fromtimestamp(int(value) / 1000).strftime("%Y-%m-%d")
except ValueError:
# Date is already formatted, return it verbatim
return value
return str(value)
2 changes: 1 addition & 1 deletion lms/services/lti_role_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_roles_for_application_instance(
self, ai: ApplicationInstance, roles: list[LTIRole]
) -> list[Role]:
self._db.flush() # Make sure roles have IDs
overrides = self._db.execute( # type: ignore
overrides = self._db.execute(
select(
LTIRole.value.label("value"),
func.coalesce(LTIRoleOverride.type, LTIRole.type).label("type"),
Expand Down

0 comments on commit 59e9841

Please sign in to comment.