Skip to content

Commit eec5775

Browse files
committed
Fix stubtest crash caused by python#13155
1 parent cbabbf7 commit eec5775

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ def __init__(
674674
if options.custom_typeshed_dir is not None:
675675
# Check if module lives under custom_typeshed_dir subtree
676676
custom_typeshed_dir = os.path.abspath(options.custom_typeshed_dir)
677+
path = os.path.abspath(path)
677678
if os.path.commonpath((path, custom_typeshed_dir)) == custom_typeshed_dir:
678679
continue
679680

0 commit comments

Comments
 (0)