Skip to content

Commit

Permalink
fix: make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-encord committed Dec 19, 2024
1 parent 63f00de commit e511e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion encord_agents/fastapi/cors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
from encord_agents.core.constants import ENCORD_DOMAIN_REGEX


class EncordCORSMiddleware(CORSMiddleware):
# Type checking does not work here because we do not enforce people to
# install fastapi as they can use package for, e.g., task runner wo fastapi.
class EncordCORSMiddleware(CORSMiddleware): # type: ignore [misc]
"""
Like a regular `fastapi.midleware.cors.CORSMiddleware` but matches against
the Encord origin by default.
Expand Down

0 comments on commit e511e75

Please sign in to comment.