Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6943dcd commit 0b1e5d3Copy full SHA for 0b1e5d3
1 file changed
scripts/stubsabot.py
@@ -372,11 +372,10 @@ def runtime_definitely_has_consistent_directory_structure_with_typeshed(self) ->
372
373
@functools.cached_property
374
def public_files_added(self) -> Sequence[str]:
375
- return [
376
- file["filename"]
377
- for file in self.py_files
378
- if not re.match("_[^_]", Path(file["filename"]).name) and file["status"] == "added"
379
- ]
+ def is_public(path: Path) -> bool:
+ return not re.match(r"_[^_]", path.name) and not path.name.startswith("test_")
+
+ return [file["filename"] for file in self.py_files if is_public(Path(file["filename"])) and file["status"] == "added"]
380
381
382
def typeshed_files_deleted(self) -> Sequence[str]:
0 commit comments