Skip to content

Commit 041d2f5

Browse files
committed
fix linters
1 parent 7b002de commit 041d2f5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fast_version/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _get_vendor_media_type() -> str:
2222

2323
def init_fastapi_versioning(*, app: fastapi.FastAPI, vendor_media_type: str) -> None:
2424
VersionedAPIRouter.VENDOR_MEDIA_TYPE = vendor_media_type
25-
app.add_middleware(FastAPIVersioningMiddleware)
25+
app.add_middleware(FastAPIVersioningMiddleware) # type: ignore[arg-type]
2626
app.openapi = MethodType(_custom_openapi, app) # type: ignore[method-assign]
2727

2828

fast_version/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def decorator(func: DecoratedCallable) -> DecoratedCallable:
4949

5050
class VersionedJSONResponse(JSONResponse):
5151
@ClassProperty
52-
def media_type(self) -> str: # type: ignore[override]
52+
def media_type(self) -> str:
5353
"""Media type for docs."""
5454
return f"{VersionedAPIRouter.VENDOR_MEDIA_TYPE}; version={version_str}"
5555

0 commit comments

Comments
 (0)