MCPcopy Create free account
hub / github.com/holoviz/hvplot / _patch_numpy_docstring

Function _patch_numpy_docstring

hvplot/util.py:1192–1205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1190
1191@contextmanager
1192def _patch_numpy_docstring():
1193 from numpydoc.docscrape import NumpyDocString
1194
1195 old_parse = NumpyDocString._parse
1196 old_sections = NumpyDocString.sections
1197 NumpyDocString._parse = _parse_numpydoc_patch
1198 # Extend
1199 for option_group in _numpydoc_extra_sections():
1200 NumpyDocString.sections[option_group] = []
1201 try:
1202 yield
1203 finally:
1204 NumpyDocString._parse = old_parse
1205 NumpyDocString.sections = old_sections
1206
1207
1208def _get_docstring_group_parameters(option_group: str) -> list:

Callers 1

Calls 1

_numpydoc_extra_sectionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…