Skip to content

Commit

Permalink
🎨Followed mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Oct 15, 2024
1 parent 7d46493 commit c803d6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/toolkit/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ def _construct(t: Type, d: Dict[str, Any]) -> Any:
setattr(
instance,
field.name,
_construct(field.type, getattr(instance, field.name)),
_construct(field.type, getattr(instance, field.name)), # type: ignore
)
continue
t_origin = getattr(field.type, "__origin__", None)
Expand All @@ -1008,7 +1008,7 @@ def _construct(t: Type, d: Dict[str, Any]) -> Any:
instance,
field.name,
[
_construct(t_value, item)
_construct(t_value, item) # type: ignore
for item in getattr(instance, field.name)
],
)
Expand All @@ -1020,7 +1020,7 @@ def _construct(t: Type, d: Dict[str, Any]) -> Any:
instance,
field.name,
{
k: _construct(t_value, v)
k: _construct(t_value, v) # type: ignore
for k, v in getattr(instance, field.name).items()
},
)
Expand Down

0 comments on commit c803d6b

Please sign in to comment.