Skip to content

Commit

Permalink
update doc and remove lint warning
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 560492579
Change-Id: I6c8ffc5ee2ccb5de7ecc05a5831bffdca0e45a3e
GitOrigin-RevId: a45ef307d6c7704de0e0f8d56df31a26f7c73777
  • Loading branch information
andrewluchen committed Sep 4, 2023
1 parent 536cad0 commit 983b68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmanager/contrib/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

_Fn = Callable[[xm.Experiment], None]
_AsyncFn = Callable[[], xm.JobGeneratorType]
# A `flow.controller()` (alias of `parameter_controller.controller()`)
# The type of `parameter_controller.controller()`
_Controller = Callable[[_Fn], _AsyncFn]


Expand All @@ -36,7 +36,7 @@ def executable_graph(
jobs_deps: dict[str, Sequence[str]],
# Have to redefine external symbol to allow both
# `flow.controller` and `flow.executable_graph(controller=)`
controller: Optional[_Controller] = None, # pylint: disable=redefined-outer-name
controller: Optional[_Controller] = None,
terminate_on_failure: bool = True,
) -> xm.JobGeneratorType:
"""Returns an executable which run the pipeline.
Expand Down

0 comments on commit 983b68a

Please sign in to comment.