fix: python 3.9 typing tests

This commit is contained in:
Régis Behmo 2025-08-13 17:26:12 +02:00 committed by Régis Behmo
parent 78298e2efa
commit 6285238e5c
2 changed files with 3 additions and 3 deletions

View File

@ -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".

View File

@ -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