We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8d477c + 3c3ee97 commit 619ee8bCopy full SHA for 619ee8b
src/tap/tapify.py
@@ -32,10 +32,9 @@
32
33
from tap import Tap
34
35
-InputType = TypeVar("InputType")
36
OutputType = TypeVar("OutputType")
37
38
-_ClassOrFunction = Union[Callable[[InputType], OutputType], type[OutputType]]
+_ClassOrFunction = Union[Callable[..., OutputType], type[OutputType]]
39
40
41
@dataclasses.dataclass
@@ -296,7 +295,7 @@ def to_tap_class(class_or_function: _ClassOrFunction) -> type[Tap]:
296
295
297
298
def tapify(
299
- class_or_function: Union[Callable[[InputType], OutputType], type[OutputType]],
+ class_or_function: Union[Callable[..., OutputType], type[OutputType]],
300
known_only: bool = False,
301
command_line_args: Optional[list[str]] = None,
302
explicit_bool: bool = False,
0 commit comments