diff --git a/lms/models/json_settings.py b/lms/models/json_settings.py index 5273a04ec8..dbd65960fa 100644 --- a/lms/models/json_settings.py +++ b/lms/models/json_settings.py @@ -72,7 +72,7 @@ class JSONSettings(MutableDict): An optional spec for the acceptable fields and types. """ - def get(self, group, key, default=None): # type: ignore + def get(self, group: str, key: str, default=None): # type: ignore[override] """ Return the requested setting or None. diff --git a/lms/resources/_js_config/__init__.py b/lms/resources/_js_config/__init__.py index ba4e24a699..3294ede0cf 100644 --- a/lms/resources/_js_config/__init__.py +++ b/lms/resources/_js_config/__init__.py @@ -7,7 +7,7 @@ from lms.error_code import ErrorCode from lms.events import LTIEvent from lms.js_config_types import DashboardConfig, DashboardRoutes, User -from lms.models import Assignment, Course, Grouping +from lms.models import ApplicationInstance, Assignment, Course, Grouping from lms.product.blackboard import Blackboard from lms.product.canvas import Canvas from lms.product.d2l import D2L @@ -48,7 +48,7 @@ def _h_user(self): return self._lti_user.h_user @property - def _application_instance(self): + def _application_instance(self) -> ApplicationInstance: return self._lti_user.application_instance def add_document_url( # pylint: disable=too-complex,too-many-branches,useless-suppression # noqa: PLR0912