Skip to content

Commit

Permalink
Actually handle the case where none are set
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed Oct 18, 2023
1 parent fc03dfc commit 5040f12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flytekit/core/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,10 @@ def __init__(

if enable_deck is not None:
self._disable_deck = not enable_deck

Check warning on line 445 in flytekit/core/base_task.py

View check run for this annotation

Codecov / codecov/patch

flytekit/core/base_task.py#L445

Added line #L445 was not covered by tests
else:
assert disable_deck is not None
elif disable_deck is not None:
self._disable_deck = disable_deck
else:
self._disable_deck = True
if self._python_interface.docstring:
if self.docs is None:
self._docs = Documentation(
Expand Down

0 comments on commit 5040f12

Please sign in to comment.