clean up and refactor
This commit is contained in:
parent
cb95da6407
commit
22b7eaf593
16 changed files with 136 additions and 500 deletions
13
examples/person.py
Normal file
13
examples/person.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
from examples.models import Person
|
||||
from pydantic_typer import expand_pydantic_args
|
||||
|
||||
|
||||
@expand_pydantic_args()
|
||||
def get_person(person: Person, thing: str = None) -> Person:
|
||||
"""mydocstring"""
|
||||
from rich import print
|
||||
|
||||
print(str(thing))
|
||||
|
||||
print(person)
|
||||
Loading…
Add table
Add a link
Reference in a new issue