2525
2626
2727def uri_reference (
28- uri : t .Union [str , bytes , bytearray ],
28+ uri : t .Union [str , bytes ],
2929 encoding : str = "utf-8" ,
3030) -> URIReference :
3131 """Parse a URI string into a URIReference.
@@ -42,7 +42,7 @@ def uri_reference(
4242
4343
4444def iri_reference (
45- iri : t .Union [str , bytes , bytearray ],
45+ iri : t .Union [str , bytes ],
4646 encoding : str = "utf-8" ,
4747) -> IRIReference :
4848 """Parse a IRI string into an IRIReference.
@@ -59,7 +59,7 @@ def iri_reference(
5959
6060
6161def is_valid_uri (
62- uri : t .Union [str , bytes , bytearray ],
62+ uri : t .Union [str , bytes ],
6363 encoding : str = "utf-8" ,
6464 ** kwargs : bool ,
6565) -> bool :
@@ -87,10 +87,7 @@ def is_valid_uri(
8787 return URIReference .from_string (uri , encoding ).is_valid (** kwargs )
8888
8989
90- def normalize_uri (
91- uri : t .Union [str , bytes , bytearray ],
92- encoding : str = "utf-8" ,
93- ) -> str :
90+ def normalize_uri (uri : t .Union [str , bytes ], encoding : str = "utf-8" ) -> str :
9491 """Normalize the given URI.
9592
9693 This is a convenience function. You could use either
@@ -106,10 +103,7 @@ def normalize_uri(
106103 return normalized_reference .unsplit ()
107104
108105
109- def urlparse (
110- uri : t .Union [str , bytes , bytearray ],
111- encoding : str = "utf-8" ,
112- ) -> ParseResult :
106+ def urlparse (uri : t .Union [str , bytes ], encoding : str = "utf-8" ) -> ParseResult :
113107 """Parse a given URI and return a ParseResult.
114108
115109 This is a partial replacement of the standard library's urlparse function.
0 commit comments