docs: fix types in docstrings

This commit is contained in:
arcanis committed 2026-11-19 15:50:36 +02:00
1 parent 0bd22a049c
commit a428b62993
45 files changed
+89 -77

No files matched your search

+2 -2
View File
@@ -83,7 +83,7 @@ def schema_request(handler: Callable[..., Awaitable[Any]], *, location: str = "j
extract request schema from docs
Args:
handler(Callable[[], Awaitable[Any]]): request handler
handler(Callable[..., Awaitable[Any]]): request handler
location(str, optional): location of the request (Default value = "json")
Returns:
@@ -99,7 +99,7 @@ def schema_response(handler: Callable[..., Awaitable[Any]], *, code: int = 200)
extract response schema from docs
Args:
handler(Callable[[], Awaitable[Any]]): request handler
handler(Callable[..., Awaitable[Any]]): request handler
code(int, optional): return code of the request (Default value = 200)
Returns:
@@ -16,7 +16,7 @@ def authorization_policy(configuration: Configuration, database: SQLite) -> _Aut
database(SQLite): database fixture
Returns:
AuthorizationPolicy: authorization policy fixture
_AuthorizationPolicy: authorization policy fixture
"""
configuration.set_option("auth", "target", "configuration")
validator = Auth.load(configuration, database)