File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,13 @@ To actually mimic the parsing done by `parse_url_encoded_dict` we will need a ut
122122from collections import defaultdict
123123from contextlib import suppress
124124from json import loads, JSONDecodeError
125- from typing import Any, DefaultDict, Dict, list
125+ from typing import Any
126126from urllib.parse import parse_qsl
127127
128128
129- def parse_url_encoded_form_data (encoded_data : bytes ) -> Dict [str , Any]:
129+ def parse_url_encoded_form_data (encoded_data : bytes ) -> dict [str , Any]:
130130 """ Parse an url encoded form data into dict of parsed values"""
131- decoded_dict: DefaultDict [str , list[Any]] = defaultdict(list )
131+ decoded_dict: defaultdict [str , list[Any]] = defaultdict(list )
132132 for k, v in parse_qsl(encoded_data.decode(), keep_blank_values = True ):
133133 with suppress(JSONDecodeError):
134134 v = loads(v) if isinstance (v, str ) else v
You can’t perform that action at this time.
0 commit comments