Skip to content

Commit

Permalink
f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 18, 2024
1 parent 9f47ac4 commit 8050726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deprecate/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def wrapped_fn(*args: Any, **kwargs: Any) -> Any:
# check if user requested a skip
shall_skip = skip_if() if callable(skip_if) else bool(skip_if)
if not isinstance(shall_skip, bool):
raise TypeError("User function `shall_skip` shall return bool, but got: %r" % type(shall_skip))
raise TypeError(f"User function `shall_skip` shall return bool, but got: {type(shall_skip)}")
if shall_skip:
return source(*args, **kwargs)

Expand Down

0 comments on commit 8050726

Please sign in to comment.