Skip to content

Commit 612fabe

Browse files
committed
Fix tapify.py
1 parent 18b13d1 commit 612fabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tap/tapify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Tapify module, which can initialize a class or run a function by parsing arguments from the command line."""
22
from inspect import signature, Parameter
3-
from typing import Any, Callable, List, Optional, TypeVar, Union
3+
from typing import Any, Callable, List, Optional, Type, TypeVar, Union
44

55
from docstring_parser import parse
66

@@ -10,7 +10,7 @@
1010
OutputType = TypeVar('OutputType')
1111

1212

13-
def tapify(class_or_function: Union[Callable[[InputType], OutputType], OutputType],
13+
def tapify(class_or_function: Union[Callable[[InputType], OutputType], Type[OutputType]],
1414
known_only: bool = False,
1515
command_line_args: Optional[List[str]] = None,
1616
**func_kwargs) -> OutputType:

0 commit comments

Comments
 (0)