mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
more beautiful typehints warning
This commit is contained in:
+7
-2
@@ -11,7 +11,12 @@ from argenta.router import Router
|
||||
from argenta.orchestrator import Orchestrator
|
||||
|
||||
from argenta.command.models import InputCommand
|
||||
from argenta.app.utils import most_similar_command
|
||||
import inspect
|
||||
|
||||
def some():
|
||||
ellipsis
|
||||
global inspect
|
||||
pass
|
||||
|
||||
|
||||
print(most_similar_command('case', ['case', 'tester', 'poster', 'caser']))
|
||||
print(inspect.getsourcelines(some))
|
||||
|
||||
@@ -13,7 +13,7 @@ console = Console()
|
||||
|
||||
|
||||
@work_router.command(Command('get', 'Get Help', aliases=['help', 'Get_help'], flags=Flags(PredefinedFlags.PORT, PredefinedFlags.HOST)))
|
||||
def command_help(response: Response):
|
||||
def command_help(response: int):
|
||||
print(response.status)
|
||||
print(response.undefined_flags.get_flags())
|
||||
print(response.valid_flags.get_flags())
|
||||
@@ -21,7 +21,7 @@ def command_help(response: Response):
|
||||
|
||||
|
||||
@work_router.command(Command('run', 'Run All'))
|
||||
def command_start_solving(response: Response):
|
||||
def command_start_solving(response: str):
|
||||
print(response.status)
|
||||
print(response.undefined_flags.get_flags())
|
||||
print(response.valid_flags.get_flags())
|
||||
|
||||
Reference in New Issue
Block a user