Skip to content

Commit

Permalink
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 6, 2023
1 parent e5a3cb5 commit 34969a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pathlib import Path
from traceback import FrameSummary, StackSummary
from types import TracebackType
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type, Union, ParamSpec
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type, Union
from uuid import UUID

import click
Expand Down Expand Up @@ -245,6 +245,7 @@ def command(
def decorator(f: CommandFunctionType) -> CommandFunctionType:
if inspect.iscoroutinefunction(f):
return f

def add_runner(f: CommandFunctionType) -> CommandFunctionType:
@wraps(f)
def runner(*args, **kwargs):
Expand Down Expand Up @@ -280,7 +281,6 @@ def runner(*args, **kwargs):
)
)


return decorator

def add_typer(
Expand Down

0 comments on commit 34969a7

Please sign in to comment.