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] committed Jun 15, 2024
1 parent a7622de commit 8cff806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rfc3986/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cff806

Please sign in to comment.