From 0a68509e41af6a86beeca9a4abb4470927bd4819 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Fri, 28 Apr 2023 08:32:49 -0500 Subject: [PATCH] linting --- pydantic_typer/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pydantic_typer/__init__.py b/pydantic_typer/__init__.py index 6d89dd7..bccb9e1 100644 --- a/pydantic_typer/__init__.py +++ b/pydantic_typer/__init__.py @@ -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__]