Skip to content

Commit

Permalink
fix mypy findings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Aug 24, 2024
1 parent f24a9fb commit 4d7ce02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/click/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ def function(__value, *args, **kwargs): # type: ignore
return f(inner, *args, **kwargs)

self._result_callback = rv = update_wrapper(t.cast(F, function), f)
return rv
return rv # type: ignore[return-value]

return decorator

Expand Down
4 changes: 2 additions & 2 deletions src/click/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def new_func(*args: "P.args", **kwargs: "P.kwargs") -> "R":

return update_wrapper(new_func, f)

return decorator # type: ignore[return-value]
return decorator


def pass_meta_key(
Expand Down Expand Up @@ -126,7 +126,7 @@ def new_func(*args: "P.args", **kwargs: "P.kwargs") -> R:
f"Decorator that passes {doc_description} as the first argument"
" to the decorated function."
)
return decorator # type: ignore[return-value]
return decorator


CmdType = t.TypeVar("CmdType", bound=Command)
Expand Down

0 comments on commit 4d7ce02

Please sign in to comment.