From dc24388273e1c4143d432f9af11476f3d0d9d620 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Tue, 30 Apr 2024 09:16:18 -0500 Subject: [PATCH] Minor mypy fix: adjust location of ignore For multiline assignments, ignores now go on the value expression, not the trailing paren. --- src/webargs/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webargs/__init__.py b/src/webargs/__init__.py index 15a2f480..aa6587ae 100755 --- a/src/webargs/__init__.py +++ b/src/webargs/__init__.py @@ -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")