MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / generate_doc

Method generate_doc

py/generate.py:564–572  ·  view source on GitHub ↗

Generate the docstring for this return.

(self)

Source from the content-addressed store, hash-verified

562 return ann
563
564 def generate_doc(self):
565 """Generate the docstring for this return."""
566 if self.description:
567 doc = self.description.replace("\n", " ")
568 if self.optional:
569 doc = f"*(Optional)* {doc}"
570 else:
571 doc = ""
572 return doc
573
574 def generate_return(self, dict_):
575 """Generate code for returning this value."""

Callers 1

generate_codeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected