MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / PathLikeClass

Class PathLikeClass

lib/matplotlib/tests/test_font_manager.py:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164def test_find_valid():
165 class PathLikeClass:
166 def __init__(self, filename):
167 self.filename = filename
168
169 def __fspath__(self):
170 return self.filename
171
172 file_str = findfont('DejaVu Sans')
173 file_bytes = os.fsencode(file_str)

Callers 1

test_find_validFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_find_validFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…