Skip to content

Commit f2fd743

Browse files
author
Guido van Rossum
committed
Allow longer tuples in error messages. Fixes #287.
1 parent f67bdbd commit f2fd743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def format_simple(self, typ: Type, verbosity: int = 0) -> str:
250250
for t in typ.items:
251251
items.append(strip_quotes(self.format(t)))
252252
s = '"Tuple[{}]"'.format(', '.join(items))
253-
if len(s) < 40:
253+
if len(s) < 400:
254254
return s
255255
else:
256256
return 'tuple(length {})'.format(len(items))

0 commit comments

Comments
 (0)