MCPcopy Index your code
hub / github.com/python/cpython / in_docstring

Method in_docstring

Tools/clinic/libclinic/dsl_parser.py:516–521  ·  view source on GitHub ↗

Return true if we are processing a docstring.

(self)

Source from the content-addressed store, hash-verified

514 block.output = self.saved_output
515
516 def in_docstring(self) -> bool:
517 """Return true if we are processing a docstring."""
518 return self.state in {
519 self.state_parameter_docstring,
520 self.state_function_docstring,
521 }
522
523 def valid_line(self, line: str) -> bool:
524 # ignore comment-only lines

Callers 1

valid_lineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected