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

Method __missing__

lib/matplotlib/_docstring.py:73–83  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

71
72class _ArtistKwdocLoader(dict):
73 def __missing__(self, key):
74 if not key.endswith(":kwdoc"):
75 raise KeyError(key)
76 name = key[:-len(":kwdoc")]
77 from matplotlib.artist import Artist, kwdoc
78 try:
79 cls, = (cls for cls in _api.recursive_subclasses(Artist)
80 if cls.__name__ == name)
81 except ValueError as e:
82 raise KeyError(key) from e
83 return self.setdefault(key, kwdoc(cls))
84
85
86class _ArtistPropertiesSubstitution:

Callers

nothing calls this directly

Calls 1

kwdocFunction · 0.90

Tested by

no test coverage detected