Skip to content

Commit

Permalink
fix: exclude static file from schema (#3509)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-reiss authored May 25, 2024
1 parent 9a3bd38 commit 7746c66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions litestar/static_files/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from litestar.response.file import ASGIFileResponse # noqa: TCH001
from litestar.router import Router
from litestar.static_files.base import StaticFiles
from litestar.types import Empty
from litestar.utils import normalize_path, warn_deprecation

__all__ = ("StaticFilesConfig",)
Expand Down Expand Up @@ -119,7 +118,7 @@ def create_static_files_router(
cache_control: CacheControlHeader | None = None,
exception_handlers: ExceptionHandlersMap | None = None,
guards: list[Guard] | None = None,
include_in_schema: bool | EmptyType = Empty,
include_in_schema: bool | EmptyType = False,
middleware: Sequence[Middleware] | None = None,
opt: dict[str, Any] | None = None,
security: Sequence[SecurityRequirement] | None = None,
Expand Down

0 comments on commit 7746c66

Please sign in to comment.