mirror of https://github.com/tiangolo/fastapi.git
Update encoders.py
This commit is contained in:
parent
c8e68cdab4
commit
334bb918e4
|
|
@ -324,7 +324,7 @@ def jsonable_encoder(
|
|||
return encoded_dict
|
||||
|
||||
if isinstance(obj, (Sequence, GeneratorType)):
|
||||
encoded_list: List[Any] = []
|
||||
encoded_list = []
|
||||
for item in obj:
|
||||
encoded_list.append(
|
||||
jsonable_encoder(
|
||||
|
|
|
|||
Loading…
Reference in New Issue