Skip to content

Commit

Permalink
Fix stubtest crash caused by python#13155
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 31, 2022
1 parent cbabbf7 commit eec5775
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ def __init__(
if options.custom_typeshed_dir is not None:
# Check if module lives under custom_typeshed_dir subtree
custom_typeshed_dir = os.path.abspath(options.custom_typeshed_dir)
path = os.path.abspath(path)
if os.path.commonpath((path, custom_typeshed_dir)) == custom_typeshed_dir:
continue

Expand Down

0 comments on commit eec5775

Please sign in to comment.