fix: resolve all 28 mypy type errors + re-enable coverage in CI
This commit is contained in:
@@ -73,7 +73,7 @@ def is_rate_limited(ip: str) -> bool:
|
||||
return failures >= MAX_ATTEMPTS
|
||||
|
||||
|
||||
def get_status(ip: str = None) -> dict:
|
||||
def get_status(ip: str | None = None) -> dict:
|
||||
"""Get rate limit status for an IP (for diagnostics)."""
|
||||
_cleanup_expired()
|
||||
if ip:
|
||||
|
||||
Reference in New Issue
Block a user