MCPcopy
hub / github.com/dask/dask / _skip_doctest

Function _skip_doctest

dask/utils.py:804–815  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

802
803
804def _skip_doctest(line):
805 # NumPy docstring contains cursor and comment only example
806 stripped = line.strip()
807 if stripped == ">>>" or stripped.startswith(">>> #"):
808 return line
809 elif ">>>" in stripped and "+SKIP" not in stripped:
810 if "# doctest:" in line:
811 return f"{line}, +SKIP"
812 else:
813 return f"{line} # doctest: +SKIP"
814 else:
815 return line
816
817
818def skip_doctest(doc):

Callers 1

skip_doctestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…