mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
pytype_test: Don't mix up stdlib and stub packages starting with stdlib. (#7609)
This should fix the pytype_test failure in https://github.com/python/typeshed/pull/7608.
This commit is contained in:
@@ -83,7 +83,7 @@ def _get_relative(filename: str) -> str:
|
||||
top = 0
|
||||
for d in TYPESHED_SUBDIRS:
|
||||
try:
|
||||
top = filename.index(d)
|
||||
top = filename.index(d + os.path.sep)
|
||||
except ValueError:
|
||||
continue
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user