refactor(util.py): add support for Sequence and Set types in format_dict function
This commit is contained in:
parent
b3a911c94b
commit
8e1cb1d732
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue