Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and lafrech committed Mar 13, 2024
1 parent bd86be9 commit fb1a75b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/webargs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# TODO: Deprecate __version__ et al.
__version__ = importlib.metadata.version("webargs")
__parsed_version__ = Version(__version__)
__version_info__: (
tuple[int, int, int] | tuple[int, int, int, str, int]
) = __parsed_version__.release # type: ignore[assignment]
__version_info__: tuple[int, int, int] | tuple[int, int, int, str, int] = (
__parsed_version__.release
) # type: ignore[assignment]
if __parsed_version__.pre:
__version_info__ += __parsed_version__.pre # type: ignore[assignment]
__all__ = ("ValidationError", "fields", "missing", "validate")
3 changes: 1 addition & 2 deletions src/webargs/falconparser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Falcon request argument parsing module.
"""
"""Falcon request argument parsing module."""

import falcon
import marshmallow as ma
Expand Down
4 changes: 2 additions & 2 deletions src/webargs/multidictproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def __str__(self): # str(proxy) proxies to str(proxy.data)
return str(self.data)

def __repr__(self):
return "MultiDictProxy(data={!r}, multiple_keys={!r})".format(
self.data, self.multiple_keys
return (
f"MultiDictProxy(data={self.data!r}, multiple_keys={self.multiple_keys!r})"
)

def __delitem__(self, key):
Expand Down

0 comments on commit fb1a75b

Please sign in to comment.