We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e981ed commit 3e2d92cCopy full SHA for 3e2d92c
1 file changed
src/click/types.py
@@ -129,7 +129,9 @@ def convert(
129
:param ctx: The current context that arrived at this value. May
130
be ``None``.
131
"""
132
- return value # type: ignore[no-any-return]
+ # The default returns the value as-is so subclasses that only customize
133
+ # metadata are not forced to redeclare ``convert``.
134
+ return t.cast("ParamTypeValue", value)
135
136
def split_envvar_value(self, rv: str) -> cabc.Sequence[str]:
137
"""Given a value from an environment variable this splits it up
0 commit comments