refactor(util.py): add support for Sequence and Set types in format_dict function

This commit is contained in:
Gabriel Almeida 2023-05-02 13:12:03 -03:00
commit 8e1cb1d732

View file

@ -217,7 +217,7 @@ def format_dict(d, name: Optional[str] = None):
_type = _type.replace("Optional[", "")[:-1]
# Check for list type
if "List" in _type:
if "List" in _type or "Sequence" in _type or "Set" in _type:
_type = _type.replace("List[", "")[:-1]
value["list"] = True
else: