From 8cff806beb78a0b3704b22c9c369b557d2dad835 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 15 Jun 2024 01:50:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/rfc3986/validators.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rfc3986/validators.py b/src/rfc3986/validators.py index d999ad2..499b9a7 100644 --- a/src/rfc3986/validators.py +++ b/src/rfc3986/validators.py @@ -435,7 +435,9 @@ def subauthority_component_is_valid( return True try: - port = int(subauthority_dict["port"]) # pyright: ignore[reportArgumentType] # Guarded by "except TypeError". + port = int( + subauthority_dict["port"] + ) # pyright: ignore[reportArgumentType] # Guarded by "except TypeError". except TypeError: # If the port wasn't provided it'll be None and int(None) raises a # TypeError