This commit is contained in:
Waylon Walker 2023-04-28 08:32:49 -05:00
parent d5916db01d
commit 0a68509e41
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -1,7 +1,11 @@
"""
pydantic_typer
"""
import inspect
from functools import wraps
from typing import Callable
from functools import wraps
import typer
__all__ = ["typer"]
@ -97,10 +101,6 @@ def {func.__name__}({aargs}{', ' if aargs else ''}{kwargs}):
'''{func.__doc__}'''
return wrapper({call_args})
"""
exec(new_func_str, locals(), globals())
new_func = globals()[func.__name__]