Skip to content

Commit c896cf8

Browse files
committed
Remove some redundant code
1 parent 604d9c3 commit c896cf8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/fastcs/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def __init__(self, my_arg: MyControllerOptions) -> None:
8080

8181

8282
def _launch(controller_class: type[Controller]) -> typer.Typer:
83-
# args_len = controller_class.__init__.__code__.co_argcount
8483
sig = inspect.signature(controller_class.__init__)
8584
args = inspect.getfullargspec(controller_class.__init__)[0]
8685
if len(args) == 1:
@@ -91,8 +90,6 @@ def _launch(controller_class: type[Controller]) -> typer.Typer:
9190
)
9291
elif len(args) == 2:
9392
hints = get_type_hints(controller_class.__init__)
94-
# if "self" in hints:
95-
# del hints["self"]
9693
if hints:
9794
options_type = list(hints.values())[-1]
9895
else:

0 commit comments

Comments
 (0)