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 ad9b33e commit fe86e4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion copier/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def inner(*args: P.args, **kwargs: P.kwargs) -> int:
return 0b100

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

Check warning on line 90 in copier/cli.py

View check run for this annotation

Codecov / codecov/patch

copier/cli.py#L90

Added line #L90 was not covered by tests

return inner

Expand Down

0 comments on commit fe86e4c

Please sign in to comment.