diff --git a/tutordeck/server/app.py b/tutordeck/server/app.py index 6f3ac5c..77b2dc6 100644 --- a/tutordeck/server/app.py +++ b/tutordeck/server/app.py @@ -88,7 +88,7 @@ class HttpAuthCredentials: @app.before_request -def http_basic_auth() -> None | tuple[str, int, dict[str, str]]: +def http_basic_auth() -> t.Optional[tuple[str, int, dict[str, str]]]: """ Check authentication headers if necessary. """ @@ -492,7 +492,7 @@ async def command() -> BaseResponse: def update_plugins_requiring_launch( - response: Response, add: str | None = None, remove: str | None = None + response: Response, add: t.Optional[str] = None, remove: t.Optional[str] = None ) -> None: """ Store the list of plugins for which a recent set of changes require running "local launch". diff --git a/tutordeck/server/tutorclient.py b/tutordeck/server/tutorclient.py index b78b73b..32e4298 100644 --- a/tutordeck/server/tutorclient.py +++ b/tutordeck/server/tutorclient.py @@ -304,7 +304,7 @@ class CliPool: class Client: @classmethod - def plugin_in_store(cls, name: str) -> tutor.plugins.indexes.IndexEntry | None: + def plugin_in_store(cls, name: str) -> t.Optional[tutor.plugins.indexes.IndexEntry]: for plugin in cls.plugins_in_store(): if plugin.name == name: return plugin