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

Class PathLikeClass

lib/matplotlib/tests/test_ft2font.py:139–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138def test_ft2font_valid_args():
139 class PathLikeClass:
140 def __init__(self, filename):
141 self.filename = filename
142
143 def __fspath__(self):
144 return self.filename
145
146 file_str = fm.findfont('DejaVu Sans')
147 file_bytes = os.fsencode(file_str)

Callers 1

test_ft2font_valid_argsFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_ft2font_valid_argsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…