Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eeb6bc4

Browse files
committed
.
1 parent 3177420 commit eeb6bc4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

typeshed_client/finder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ def _find_file_in_dir(
381381

382382

383383
def find_typeshed() -> Path:
384-
return importlib_resources.files("typeshed_client") / "typeshed"
384+
path = importlib_resources.files("typeshed_client") / "typeshed"
385+
assert isinstance(path, Path), repr(path)
386+
return path
385387

386388

387389
def parse_stub_file(path: Path) -> ast.Module:

0 commit comments

Comments
 (0)