mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-23 01:49:29 +00:00
docs: fix types in docstrings
This commit is contained in:
1 parent
0bd22a049c
commit
a428b62993
45 files changed
+89
-77
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user