Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Feb 11, 2024
1 parent 4ad8de3 commit 091a1c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions copier/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
copier --help-all
```
"""
from __future__ import annotations

import functools
import inspect
import sys
from os import PathLike
from pathlib import Path
Expand All @@ -68,7 +69,6 @@


def _handle_exceptions(method: Callable[P, int]) -> Callable[P, int]:
@functools.wraps(method)
def inner(*args: P.args, **kwargs: P.kwargs) -> int:
try:
try:
Expand All @@ -83,6 +83,9 @@ def inner(*args: P.args, **kwargs: P.kwargs) -> int:
# DOCS https://github.com/copier-org/copier/issues/1328#issuecomment-1723214165
return 0b100

# See https://github.com/copier-org/copier/pull/1513
inner.__signature__ = inspect.signature(method, eval_str=True) # type: ignore[attr-defined]

return inner


Expand Down

0 comments on commit 091a1c4

Please sign in to comment.