From 941ea158e088a0e714d97eb971698eb6defa48be Mon Sep 17 00:00:00 2001 From: popcorny Date: Tue, 5 Sep 2023 08:53:48 +0800 Subject: [PATCH] Fix: TypeError: __init__() got an unexpected keyword argument "executable" Signed-off-by: popcorny --- piperider_cli/cli.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/piperider_cli/cli.py b/piperider_cli/cli.py index 3372a86e3..8af7d9ba0 100644 --- a/piperider_cli/cli.py +++ b/piperider_cli/cli.py @@ -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"]