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

Method extract_docstrings_from_str

Lib/test/test_tools/test_i18n.py:113–115  ·  view source on GitHub ↗

Return all docstrings extracted from module_content.

(self, module_content)

Source from the content-addressed store, hash-verified

111 return data, res.err
112
113 def extract_docstrings_from_str(self, module_content):
114 """Return all docstrings extracted from module_content."""
115 return self.extract_from_str(module_content, args=('--docstrings',), strict=False)
116
117 def get_stderr(self, module_content):
118 return self.extract_from_str(module_content, strict=False, with_stderr=True)[1]

Callers 15

test_funcdocstringMethod · 0.95
test_classdocstringMethod · 0.95
test_moduledocstringMethod · 0.95
test_msgidMethod · 0.95
test_msgid_bytesMethod · 0.95
test_msgid_fstringMethod · 0.95

Calls 1

extract_from_strMethod · 0.95

Tested by

no test coverage detected