Skip to content

Commit

Permalink
Update cli_wrapper.py (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
einarwar committed Mar 22, 2024
1 parent 070bf6e commit a8714e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python_on_whales/components/compose/cli_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ def build(
else:
run(full_cmd, capture_stdout=False)

@overload
def config(self, return_json: Literal[False] = ...) -> ComposeConfig:
...

@overload
def config(self, return_json: Literal[True] = ...) -> Dict[str, Any]:
...

def config(self, return_json: bool = False) -> Union[ComposeConfig, Dict[str, Any]]:
"""Returns the configuration of the compose stack for further inspection.
Expand Down

0 comments on commit a8714e4

Please sign in to comment.