fix: python 3.9 typing tests
This commit is contained in:
parent
78298e2efa
commit
6285238e5c
@ -88,7 +88,7 @@ class HttpAuthCredentials:
|
|||||||
|
|
||||||
|
|
||||||
@app.before_request
|
@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.
|
Check authentication headers if necessary.
|
||||||
"""
|
"""
|
||||||
@ -492,7 +492,7 @@ async def command() -> BaseResponse:
|
|||||||
|
|
||||||
|
|
||||||
def update_plugins_requiring_launch(
|
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:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Store the list of plugins for which a recent set of changes require running "local launch".
|
Store the list of plugins for which a recent set of changes require running "local launch".
|
||||||
|
|||||||
@ -304,7 +304,7 @@ class CliPool:
|
|||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
@classmethod
|
@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():
|
for plugin in cls.plugins_in_store():
|
||||||
if plugin.name == name:
|
if plugin.name == name:
|
||||||
return plugin
|
return plugin
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user