Skip to content

Commit

Permalink
just ignore typing problems for now
Browse files Browse the repository at this point in the history
next PR will remove our custom request as it is no longer needed
  • Loading branch information
johanlundberg committed Dec 2, 2024
1 parent 5f2c3a8 commit 43b11e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/eduid/webapp/common/api/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def sanitize_input(
abort(400)


class SanitizedImmutableMultiDict(ImmutableMultiDict, SanitationMixin):
class SanitizedImmutableMultiDict(ImmutableMultiDict, SanitationMixin): # type: ignore[misc]
"""
See `werkzeug.datastructures.ImmutableMultiDict`.
This class is an extension that overrides all access methods to
Expand Down Expand Up @@ -148,7 +148,7 @@ def to_dict(self, flat: bool = True) -> dict | dict[Any, list[str]]:
T = TypeVar("T")


class SanitizedTypeConversionDict(ImmutableTypeConversionDict, SanitationMixin):
class SanitizedTypeConversionDict(ImmutableTypeConversionDict, SanitationMixin): # type: ignore[misc]
"""
See `werkzeug.datastructures.TypeConversionDict`.
This class is an extension that overrides all access methods to
Expand Down Expand Up @@ -198,7 +198,7 @@ def items(self) -> list[tuple[str, str]]: # type: ignore[override]
return [(v[0], self.sanitize_input(v[1])) for v in super(ImmutableTypeConversionDict, self).items()]


class SanitizedEnvironHeaders(EnvironHeaders, SanitationMixin):
class SanitizedEnvironHeaders(EnvironHeaders, SanitationMixin): # type: ignore[misc]
"""
Sanitized and read only version of the headers from a WSGI environment.
"""
Expand All @@ -220,7 +220,7 @@ def __getitem__(self, key: str, _get_mode: bool = False) -> str: # type: ignore
val = super().__getitem__(key)
return self.sanitize_input(untrusted_text=val, content_type=self.content_type)

def __iter__(self) -> Iterator[tuple[str, str]]: # type: ignore[override]
def __iter__(self) -> Iterator[tuple[str, str]]:
"""
Sanitized __iter__
"""
Expand Down

0 comments on commit 43b11e3

Please sign in to comment.