pydantic-typer/examples/person.py
2023-04-28 10:24:21 -05:00

13 lines
263 B
Python

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)