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