MCPcopy Create free account
hub / github.com/dagger/dagger / doc

Function doc

sdk/python/codegen/src/codegen/generator.py:532–538  ·  view source on GitHub ↗

Wrap string in docstring quotes.

(s: str)

Source from the content-addressed store, hash-verified

530
531
532def doc(s: str) -> str:
533 """Wrap string in docstring quotes."""
534 if "\n" in s:
535 s = f"{s}\n"
536 elif s.endswith('"'):
537 s += " "
538 return f'"""{s}"""'
539
540
541def quote(s: str) -> str:

Callers 6

test_docFunction · 0.90
render_bodyMethod · 0.85
__str__Method · 0.85
func_bodyMethod · 0.85
render_bodyMethod · 0.85
render_bodyMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_docFunction · 0.72