@@ -150,7 +150,7 @@ def replace_query_params(self, **kwargs: typing.Any) -> URL:
150150 query = urlencode ([(str (key ), str (value )) for key , value in kwargs .items ()])
151151 return self .replace (query = query )
152152
153- def remove_query_params (self , keys : str | typing .Sequence [str ]) -> " URL" :
153+ def remove_query_params (self , keys : str | typing .Sequence [str ]) -> URL :
154154 if isinstance (keys , str ):
155155 keys = [keys ]
156156 params = MultiDict (parse_qsl (self .query , keep_blank_values = True ))
@@ -178,7 +178,7 @@ class URLPath(str):
178178 Used by the routing to return `url_path_for` matches.
179179 """
180180
181- def __new__ (cls , path : str , protocol : str = "" , host : str = "" ) -> " URLPath" :
181+ def __new__ (cls , path : str , protocol : str = "" , host : str = "" ) -> URLPath :
182182 assert protocol in ("http" , "websocket" , "" )
183183 return str .__new__ (cls , path )
184184
@@ -251,13 +251,13 @@ def __str__(self) -> str:
251251
252252
253253class ImmutableMultiDict (typing .Mapping [_KeyType , _CovariantValueType ]):
254- _dict : typing . Dict [_KeyType , _CovariantValueType ]
254+ _dict : dict [_KeyType , _CovariantValueType ]
255255
256256 def __init__ (
257257 self ,
258258 * args : ImmutableMultiDict [_KeyType , _CovariantValueType ]
259259 | typing .Mapping [_KeyType , _CovariantValueType ]
260- | typing .Iterable [typing . Tuple [_KeyType , _CovariantValueType ]],
260+ | typing .Iterable [tuple [_KeyType , _CovariantValueType ]],
261261 ** kwargs : typing .Any ,
262262 ) -> None :
263263 assert len (args ) < 2 , "Too many arguments."
@@ -599,7 +599,7 @@ def __setitem__(self, key: str, value: str) -> None:
599599 set_key = key .lower ().encode ("latin-1" )
600600 set_value = value .encode ("latin-1" )
601601
602- found_indexes : "typing.List [int]" = []
602+ found_indexes : list [int ] = []
603603 for idx , (item_key , item_value ) in enumerate (self ._list ):
604604 if item_key == set_key :
605605 found_indexes .append (idx )
@@ -619,7 +619,7 @@ def __delitem__(self, key: str) -> None:
619619 """
620620 del_key = key .lower ().encode ("latin-1" )
621621
622- pop_indexes : "typing.List [int]" = []
622+ pop_indexes : list [int ] = []
623623 for idx , (item_key , item_value ) in enumerate (self ._list ):
624624 if item_key == del_key :
625625 pop_indexes .append (idx )
0 commit comments