Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ _bestrelpath_cache
Class
_bestrelpath_cache
src/_pytest/main.py:444–450 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
442
443
@attr.s(slots=True, auto_attribs=True)
444
class
_bestrelpath_cache(Dict[Path, str]):
445
path: Path
446
447
def
__missing__(self, path: Path) -> str:
448
r = bestrelpath(self.path, path)
449
self[path] = r
450
return
r
451
452
453
@final
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected