Skip to content

Commit

Permalink
Add additional type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Sep 14, 2023
1 parent cada630 commit 0b452bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/admin/controller/integration_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from core.util.cache import memoize
from core.util.problem_detail import ProblemError

T = TypeVar("T", bound=HasIntegrationConfiguration)
T = TypeVar("T", bound=HasIntegrationConfiguration[BaseSettings])


class UpdatedLibrarySettingsTuple(NamedTuple):
Expand Down
4 changes: 3 additions & 1 deletion api/discovery/opds_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ class OpdsRegistrationServiceSettings(BaseSettings):
)


class OpdsRegistrationService(HasIntegrationConfiguration):
class OpdsRegistrationService(
HasIntegrationConfiguration[OpdsRegistrationServiceSettings]
):
"""A circulation manager's view of a remote service that supports
the OPDS Directory Registration Protocol:
Expand Down

0 comments on commit 0b452bb

Please sign in to comment.