diff --git a/lms/pshell.py b/lms/pshell.py index 73db1f8d65..14f0a7f32e 100644 --- a/lms/pshell.py +++ b/lms/pshell.py @@ -1,3 +1,4 @@ +# type: ignore import os import sys from contextlib import suppress diff --git a/lms/services/hubspot/service.py b/lms/services/hubspot/service.py index b3f137e128..168d1346c8 100644 --- a/lms/services/hubspot/service.py +++ b/lms/services/hubspot/service.py @@ -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) diff --git a/lms/services/lti_role_service.py b/lms/services/lti_role_service.py index a674fcbf04..f6008bfba9 100644 --- a/lms/services/lti_role_service.py +++ b/lms/services/lti_role_service.py @@ -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"),