Skip to content

Commit

Permalink
Merge pull request #873 from InfuseAI/bug/sc-32225/typeerror-init-got…
Browse files Browse the repository at this point in the history
…-an-unexpected-keyword

[Bug] TypeError: __init__() got an unexpected keyword argument "execut…
  • Loading branch information
popcornylu authored Sep 5, 2023
2 parents 69ccb26 + 941ea15 commit 1a557c2
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions piperider_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,8 @@ def _add_options(func):


class RunDataPath(click.Path):

def __init__(self):
super().__init__(
exists=True,
file_okay=True,
dir_okay=False,
writable=False,
readable=True,
resolve_path=True,
allow_dash=False,
path_type=None,
executable=False
)
super().__init__(exists=True, dir_okay=False, resolve_path=True)

def convert(
self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"]
Expand Down

0 comments on commit 1a557c2

Please sign in to comment.