Generate the declaration for this parameter.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected