Skip to content

Commit

Permalink
Minor mypy fix: adjust location of ignore
Browse files Browse the repository at this point in the history
For multiline assignments, ignores now go on the value expression, not
the trailing paren.
  • Loading branch information
sirosen committed Apr 30, 2024
1 parent 2740064 commit dc24388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webargs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
__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]
__parsed_version__.release # type: ignore[assignment]
)
if __parsed_version__.pre:
__version_info__ += __parsed_version__.pre # type: ignore[assignment]
__all__ = ("ValidationError", "fields", "missing", "validate")

0 comments on commit dc24388

Please sign in to comment.