unify function sigs to make click happy

This commit is contained in:
Carl Beekhuizen 2022-03-16 15:28:13 +01:00
parent e84e9422eb
commit 925960fcaf
No known key found for this signature in database
GPG Key ID: 8F29E54F49E7AAB5

View File

@ -52,9 +52,9 @@ class JITOption(click.Option):
self.help = _value_of(self.callable_help)
return super().get_help_record(ctx)
def get_default(self, ctx: click.Context) -> Any:
def get_default(self, ctx: click.Context, call: bool = True) -> Any:
self.default = _value_of(self.callable_default)
return super().get_default(ctx)
return super().get_default(ctx, call)
def jit_option(*args: Any, **kwargs: Any) -> Callable[[Any], Any]: