Skip to content

fix: show custom error message in prompt with hide_input=True#3256

Open
doiken wants to merge 1 commit intopallets:stablefrom
doiken:fix/hide-input-custom-error-message
Open

fix: show custom error message in prompt with hide_input=True#3256
doiken wants to merge 1 commit intopallets:stablefrom
doiken:fix/hide-input-custom-error-message

Conversation

@doiken
Copy link

@doiken doiken commented Mar 10, 2026

fixes #2809

prompt() with hide_input=True always showed a generic error message, even for custom types.

This change masks the input value using repr(value) matching
(consistent with built-in types' {value!r} pattern) and shows
custom messages that don't contain the input value as-is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant