Skip to content

Commit 8c3662c

Browse files
committed
Print version on internal error
1 parent 78bcea1 commit 8c3662c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/errors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Tuple, List, TypeVar, Set, Dict, Iterator, Optional
88

99
from mypy.options import Options
10+
from mypy.version import __version__ as mypy_version
1011

1112

1213
T = TypeVar('T')
@@ -536,6 +537,7 @@ def report_internal_error(err: Exception, file: str, line: int,
536537
# Print "INTERNAL ERROR" message.
537538
print('{}: error: INTERNAL ERROR --'.format(prefix),
538539
'please report a bug at https://github.com/python/mypy/issues',
540+
'[version: {}]'.format(mypy_version),
539541
file=sys.stderr)
540542

541543
# If requested, drop into pdb. This overrides show_tb.

0 commit comments

Comments
 (0)