MCPcopy Index your code
hub / github.com/python/mypy / normalise_path

Function normalise_path

mypy/test/test_find_sources.py:37–40  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

35
36
37def normalise_path(path: str) -> str:
38 path = os.path.splitdrive(path)[1]
39 path = path.replace(os.sep, "/")
40 return path
41
42
43def normalise_build_source_list(sources: list[BuildSource]) -> list[tuple[str, str | None]]:

Callers 2

crawlFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…