Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Dec 22, 2024
1 parent 6aa7dbf commit b476d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions litestar/datastructures/response_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __post_init__(self) -> None:
raise ImproperlyConfiguredException("value must be set if documentation_only is false")

if self.allow_reserved is None:
self.allow_reserved = False
self.allow_reserved = False # type: ignore[unreachable]
else:
warn_deprecation(
"2.13.1",
Expand All @@ -134,7 +134,7 @@ def __post_init__(self) -> None:
)

if self.allow_empty_value is None:
self.allow_empty_value = False
self.allow_empty_value = False # type: ignore[unreachable]
else:
warn_deprecation(
"2.13.1",
Expand Down
4 changes: 2 additions & 2 deletions litestar/openapi/spec/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _exclude_fields(self) -> set[str]:

def __post_init__(self) -> None:
if self.allow_reserved is None:
self.allow_reserved = False
self.allow_reserved = False # type: ignore[unreachable]
else:
warn_deprecation(
"2.13.1",
Expand All @@ -138,7 +138,7 @@ def __post_init__(self) -> None:
)

if self.allow_empty_value is None:
self.allow_empty_value = False
self.allow_empty_value = False # type: ignore[unreachable]
else:
warn_deprecation(
"2.13.1",
Expand Down

0 comments on commit b476d42

Please sign in to comment.