From fec28df75f3bf43e91e06aa39f41f1b25ef1c110 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Fri, 28 Apr 2023 14:12:29 -0500 Subject: [PATCH] ruff fix --- pydantic_typer/__init__.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pydantic_typer/__init__.py b/pydantic_typer/__init__.py index bccb9e1..3931b7b 100644 --- a/pydantic_typer/__init__.py +++ b/pydantic_typer/__init__.py @@ -1,11 +1,8 @@ -""" -pydantic_typer - -""" +"""pydantic_typer.""" import inspect -from typing import Callable - from functools import wraps +from typing import Any, Callable + import typer __all__ = ["typer"] @@ -140,7 +137,7 @@ def _expand_kwargs(func, kwargs): def expand_pydantic_args(typer: bool = False) -> Callable: - def decorator(func: Callable) -> Callable[..., any]: + def decorator(func: Callable) -> Callable[..., Any]: @wraps(func) def wrapper(*args, **kwargs): return func(**_expand_kwargs(func, kwargs))