Skip to content
Myr

Merge pull request #2064 from Yourun-proger/fix

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

Fix type annotation for `type` arg

authored by David Lord · committed by GitHub · parents 7c12750, 2703f8f · Browse files · 2 files+3 added−1 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−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/click/termui.py+1 added-1 removed
82 unmodified lines
83 text: str,84 default: t.Optional[t.Any] = None,85 hide_input: bool = False,86 confirmation_prompt: t.Union[bool, str] = False,87 type: t.Optional[ParamType] = None,87 type: t.Optional[t.Union[ParamType, t.Any]] = None,88 value_proc: t.Optional[t.Callable[[str], t.Any]] = None,89 prompt_suffix: str = ": ",90 show_default: bool = True,91 err: bool = False,
716 unmodified lines
modified:CHANGES.rst+2 added
14 unmodified lines
15- ``Path`` type with ``resolve_path=True`` resolves relative symlinks16 to be relative to the containing directory. :issue:`1921`17- Completion does not skip Python's resource cleanup when exiting,18 avoiding some unexpected warning output. :issue:`1738, 2017`19- Fix type annotation for ``type`` argument in ``prompt`` function.20 :issue:`2062`212223Version 8.0.124-------------
889 unmodified lines