Skip to content

Commit c1ca345

Browse files
committed
Minor typing and coverage tweaks.
1 parent 9a2b3bb commit c1ca345

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

referencing/loaders.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def from_path(path: Path) -> Iterable[tuple[URI, Resource[Any]]]:
2525
yield path.as_uri(), Resource.from_contents(contents)
2626

2727

28-
def _walk(path: Path):
28+
def _walk(path: Path) -> Iterable[tuple[Path, Iterable[str], Iterable[str]]]:
2929
walk = getattr(path, "walk", None)
3030
if walk is not None:
3131
yield from walk()
3232
return
33-
for root, dirs, files in os.walk(path):
33+
for root, dirs, files in os.walk(path): # pragma: no cover
3434
yield Path(root), dirs, files

referencing/tests/test_loaders.py

-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,3 @@ def test_absolute_internally_identified(tmp_path):
4545
def test_empty(tmp_path):
4646
registry = EMPTY_REGISTRY.with_resources(loaders.from_path(tmp_path))
4747
assert registry == EMPTY_REGISTRY
48-
49-
50-
def test_custom_loads(tmp_path):
51-
pass

0 commit comments

Comments
 (0)