Skip to content

Commit b273457

Browse files
committed
style: remove unnecessary type ignore comment
The type ignore for add_exception_handler is no longer needed with current library versions in CI environment.
1 parent 84bb766 commit b273457

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/security/rate_limiting.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def setup_rate_limiting(app: FastAPI) -> None:
7979
>>> setup_rate_limiting(app)
8080
"""
8181
app.state.limiter = limiter
82-
app.add_exception_handler(
83-
RateLimitExceeded, _rate_limit_exceeded_handler # type: ignore[arg-type]
84-
)
82+
app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
8583

8684
logger.info(
8785
"rate_limiting_configured",

0 commit comments

Comments
 (0)