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

Method generate_decl

py/generate.py:510–518  ·  view source on GitHub ↗

Generate the declaration for this parameter.

(self)

Source from the content-addressed store, hash-verified

508 return code
509
510 def generate_decl(self):
511 """Generate the declaration for this parameter."""
512 if self.description:
513 code = inline_doc(self.description)
514 code += "\n"
515 else:
516 code = ""
517 code += f"{self.py_name}: {self.py_annotation}"
518 return code
519
520 def generate_doc(self):
521 """Generate the docstring for this parameter."""

Callers

nothing calls this directly

Calls 1

inline_docFunction · 0.85

Tested by

no test coverage detected