Skip to content

Commit 6eb6ab9

Browse files
Update mypy/config_parser.py: slightly friendlier error message
I'm committing this because it's very convenient through the web interface, but I will presumably have to make a second commit to change the test output that depends on this Co-authored-by: Shantanu <[email protected]>
1 parent e8eaf36 commit 6eb6ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def try_split(v: str | Sequence[str] | object, split_regex: str = ",") -> list[s
6666

6767
def complain(x: object, additional_info: str = "") -> Never:
6868
raise argparse.ArgumentTypeError(
69-
f"Expected a list or a stringified version thereof, but got: '{x}', of type {type(x)}.{additional_info}"
69+
f"Expected a list or a stringified version thereof, but got: '{x}', of type {type(x).__name__}.{additional_info}"
7070
)
7171

7272
if isinstance(v, str):

0 commit comments

Comments
 (0)