8000 Address review · python/typeshed@83b05f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83b05f3

Browse files
committed
Address review
1 parent 91e5dd2 commit 83b05f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/mypy_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ def test_third_party_distribution(distribution: str, major: int, minor: int, arg
274274
return code, len(files)
275275

276276

277-
def is_probably_stubs_folder(dist_path: Path) -> bool:
277+
def is_probably_stubs_folder(distribution: str, distribution_path: Path) -> bool:
278278
"""Validate that `dist_path` is a folder containing stubs"""
279-
return (dist_path / "METADATA.toml").exists()
279+
return distribution != ".mypy_cache" and distribution_path.is_dir()
280280

281281

282282
def main():
@@ -330,7 +330,7 @@ def main():
330330

331331
distribution_path = Path("stubs", distribution)
332332

333-
if not is_probably_stubs_folder(distribution_path):
333+
if not is_probably_stubs_folder(distribution, distribution_path):
334334
continue
335335

336336
if not is_supported(distribution_path, major):

0 commit comments

Comments
 (0)
0