We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 896709e commit e8ba3f1Copy full SHA for e8ba3f1
mypy/build.py
@@ -2396,7 +2396,7 @@ def find_module_and_diagnose(manager: BuildManager,
2396
and not options.use_builtins_fixtures
2397
and not options.custom_typeshed_dir):
2398
raise CompileError([
2399
- 'mypy: "%s" shadows library module "%s"' % (result, id),
+ 'mypy: "%s" shadows library module "%s"' % (os.path.relpath(result), id),
2400
'note: A user-defined top-level module with name "%s" is not supported' % id
2401
])
2402
return (result, follow_imports)
0 commit comments