We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7622de commit 8cff806Copy full SHA for 8cff806
src/rfc3986/validators.py
@@ -435,7 +435,9 @@ def subauthority_component_is_valid(
435
return True
436
437
try:
438
- port = int(subauthority_dict["port"]) # pyright: ignore[reportArgumentType] # Guarded by "except TypeError".
+ port = int(
439
+ subauthority_dict["port"]
440
+ ) # pyright: ignore[reportArgumentType] # Guarded by "except TypeError".
441
except TypeError:
442
# If the port wasn't provided it'll be None and int(None) raises a
443
# TypeError
0 commit comments