Skip to content
Myr

Make `uv run --all-extras pyright --verifytypes click` pass (#3072)

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

authored by Rowlando13 · committed by GitHub · parents a92c573, 9cc2fe3 · Browse files · 2 files+3 added−2 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−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:src/click/core.py+2 added-2 removed
2165 unmodified lines
2166 self.callback = callback2167 self.nargs = nargs2168 self.multiple = multiple2169 self.expose_value = expose_value2170 self.default = default2170 self.default: t.Any | t.Callable[[], t.Any] | None = default2171 self.is_eager = is_eager2172 self.metavar = metavar2173 self.envvar = envvar2174 self._custom_shell_complete = shell_complete
586 unmodified lines
2761 # Auto-detect the type of the flag based on the flag_value.2762 if type is None:2763 # A flag without a flag_value is a boolean flag.2764 if flag_value is UNSET:2765 self.type = types.BoolParamType()2765 self.type: types.ParamType = types.BoolParamType()2766 # If the flag value is a boolean, use BoolParamType.2767 elif isinstance(flag_value, bool):2768 self.type = types.BoolParamType()2769 # Otherwise, guess the type from the flag value.
616 unmodified lines
modified:pyproject.toml+1 added
172 unmodified lines
173description = "run static type checkers"174dependency_groups = ["typing"]175commands = [176 ["mypy"],177 ["pyright", "--ignoreexternal", "--verifytypes", "click"],178]179180[tool.tox.env.docs]181description = "build docs"
29 unmodified lines