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
|
return encoded_dict
|
||||||
|
|
||||||
if isinstance(obj, (Sequence, GeneratorType)):
|
if isinstance(obj, (Sequence, GeneratorType)):
|
||||||
encoded_list: List[Any] = []
|
encoded_list = []
|
||||||
for item in obj:
|
for item in obj:
|
||||||
encoded_list.append(
|
encoded_list.append(
|
||||||
jsonable_encoder(
|
jsonable_encoder(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue