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 a183a71 commit e8d08f8Copy full SHA for e8d08f8
Lib/getpass.py
@@ -148,8 +148,8 @@ def _check_echo_char(echo_char):
148
if echo_char is None:
149
return
150
if not isinstance(echo_char, str):
151
- raise TypeError("'echo_char' must be type 'str' or 'None', got: "
152
- f"{echo_char!r} (type: {type(echo_char).__name__})")
+ raise TypeError("'echo_char' must be str or None, not "
+ f"{type(echo_char).__name__}")
153
if not (
154
len(echo_char) == 1
155
and echo_char.isprintable()
0 commit comments