Skip to content
Myr

fix mypy findings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent f24a9fb · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:src/click/core.py+1 added-1 removed
1598 unmodified lines
1599 inner = old_callback(__value, *args, **kwargs)1600 return f(inner, *args, **kwargs)16011602 self._result_callback = rv = update_wrapper(t.cast(F, function), f)1603 return rv1603 return rv # type: ignore[return-value]16041605 return decorator16061607 def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None:
1425 unmodified lines
modified:src/click/decorators.py+2 added-2 removed
91 unmodified lines
92 return ctx.invoke(f, obj, *args, **kwargs)9394 return update_wrapper(new_func, f)9596 return decorator # type: ignore[return-value]96 return decorator979899def pass_meta_key(100 key: str, *, doc_description: t.Optional[str] = None
24 unmodified lines
125 decorator.__doc__ = (126 f"Decorator that passes {doc_description} as the first argument"127 " to the decorated function."128 )129 return decorator # type: ignore[return-value]129 return decorator130131132CmdType = t.TypeVar("CmdType", bound=Command)133
420 unmodified lines