This commit is contained in:
Waylon Walker 2023-06-22 11:19:09 -05:00
parent c501db800e
commit 8480cd3d24
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -34,7 +34,7 @@ def hero():
@hero_app.command() @hero_app.command()
def get( def get(
hero_id: Optional[int] = typer.Argument(default=None), hero_id: Optional[int] = typer.Argument(),
) -> Union[Hero, List[Hero]]: ) -> Union[Hero, List[Hero]]:
"get one hero" "get one hero"
hero = HeroRead.get(id=hero_id) hero = HeroRead.get(id=hero_id)
@ -80,7 +80,7 @@ def update(
@hero_app.command() @hero_app.command()
@engorgio(typer=True) @engorgio(typer=True)
def delete( def delete(
hero_id: Optional[int] = typer.Argument(default=None), hero_id: Optional[int] = typer.Argument(),
) -> Hero: ) -> Hero:
"delete a hero by id" "delete a hero by id"
hero = HeroDelete.delete(id=hero_id) hero = HeroDelete.delete(id=hero_id)