We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 604d9c3 commit c896cf8Copy full SHA for c896cf8
src/fastcs/main.py
@@ -80,7 +80,6 @@ def __init__(self, my_arg: MyControllerOptions) -> None:
80
81
82
def _launch(controller_class: type[Controller]) -> typer.Typer:
83
- # args_len = controller_class.__init__.__code__.co_argcount
84
sig = inspect.signature(controller_class.__init__)
85
args = inspect.getfullargspec(controller_class.__init__)[0]
86
if len(args) == 1:
@@ -91,8 +90,6 @@ def _launch(controller_class: type[Controller]) -> typer.Typer:
91
90
)
92
elif len(args) == 2:
93
hints = get_type_hints(controller_class.__init__)
94
- # if "self" in hints:
95
- # del hints["self"]
96
if hints:
97
options_type = list(hints.values())[-1]
98
else:
0 commit comments