def hello( input: HelloInput, writer: commands.Writer = Depends(commands.writer), # TODO: more deps? ) -> t.Dict[str, t.Any]: with runtime.handle() as s: commands.hello(writer, **input.dict()) return s.dict()
def hello(input: Hello) -> t.Dict[str, t.Any]: """ hello world """ with runtime.handle() as s: commands.hello(**input.dict()) return s.dict()
def hello(input: HelloInput) -> t.Dict[str, t.Any]: with runtime.handle() as s: commands.hello(**input.dict()) return s.dict()
def hello( input: HelloInput, db: commands.DB = Depends(db)) -> t.Dict[str, t.Any]: with runtime.handle() as s: commands.hello(db, **input.dict()) return s.dict()
def hello( input: HelloInput, db: commands.DB = Depends(db)) -> t.Dict[str, t.Any]: with runtime.handle() as s: # TODO: support positional arguments? (DI) commands.hello(db, **input.dict()) return s.dict()
def hello() -> t.Dict[str, t.Any]: with runtime.handle() as s: commands.hello() return s.dict()