Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenxinxing committed Jan 9, 2024
1 parent d5b0b19 commit e5b6ee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/starwhale/api/_impl/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def asdict(self) -> t.Dict[str, t.Any]:
r[func][dtype][option.name] = info
return r

def asobj(self) -> t.Dict[str, t.Optional[t.Dict[str, t.Dict[str, OptionField]]]]:
r: t.Dict[str, t.Optional[t.Dict[str, t.Dict[str, OptionField]]]] = defaultdict(
def asobj(self) -> t.Dict[str, t.Dict[str, t.Dict[str, OptionField]]]:
r: t.Dict[str, t.Dict[str, t.Dict[str, OptionField]]] = defaultdict(
lambda: defaultdict(dict)
)
for func, dtypes in self._func_related_dataclasses.items():
Expand Down
2 changes: 1 addition & 1 deletion client/starwhale/api/_impl/job/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_registered_handlers_with_expanded_needs(
ctx = ArgumentContext.get_current_context()
handler_args = ctx.asobj()
for name, handler in cls._registered_handlers.items():
handler.arguments = handler_args.get(handler.name)
handler.arguments = handler_args.get(handler.name) # type: ignore[assignment]

if name not in expanded_names:
expanded_names[name] = set()
Expand Down

0 comments on commit e5b6ee4

Please sign in to comment.