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

Function normalise_package_base

mypy/find_sources.py:72–78  ·  view source on GitHub ↗
(root: str)

Source from the content-addressed store, hash-verified

70
71
72def normalise_package_base(root: str) -> str:
73 if not root:
74 root = os.curdir
75 root = os.path.abspath(root)
76 if root.endswith(os.sep):
77 root = root[:-1]
78 return root
79
80
81def get_explicit_package_bases(options: Options) -> list[str] | None:

Callers 2

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…