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 1674a27 commit aa4076fCopy full SHA for aa4076f
1 file changed
src/click/core.py
@@ -2356,8 +2356,13 @@ def get_usage_pieces(self, ctx: Context) -> list[str]:
2356
return []
2357
2358
def get_error_hint(self, ctx: Context | None) -> str:
2359
- """Get a stringified version of the param for use in error messages to
+ """
2360
+ Get a stringified version of the param for use in error messages to
2361
indicate which param caused the error.
2362
+
2363
+ .. versionchanged:: 8.2
2364
+ ``ctx`` can be ``None``. This has technically always been the case,
2365
+ but has been made explicit via typing.
2366
"""
2367
hint_list = self.opts or [self.human_readable_name]
2368
return " / ".join(f"'{x}'" for x in hint_list)
0 commit comments