forked from claw/flaskpaste
routes: fix mypy no-any-return in get_pow_secret
This commit is contained in:
@@ -752,7 +752,8 @@ def is_admin() -> bool:
|
|||||||
|
|
||||||
def get_pow_secret() -> bytes:
|
def get_pow_secret() -> bytes:
|
||||||
"""Get PoW signing secret from app config."""
|
"""Get PoW signing secret from app config."""
|
||||||
return current_app.config["POW_SECRET"].encode()
|
secret: str = current_app.config["POW_SECRET"]
|
||||||
|
return secret.encode()
|
||||||
|
|
||||||
|
|
||||||
def generate_challenge(difficulty_override: int | None = None) -> dict[str, Any]:
|
def generate_challenge(difficulty_override: int | None = None) -> dict[str, Any]:
|
||||||
|
|||||||
Reference in New Issue
Block a user