(self, line: str)
| 804 | # ParamState class. |
| 805 | |
| 806 | def state_parameters_start(self, line: str) -> None: |
| 807 | if not self.valid_line(line): |
| 808 | return |
| 809 | |
| 810 | # if this line is not indented, we have no parameters |
| 811 | if not self.indent.infer(line): |
| 812 | return self.next(self.state_function_docstring, line) |
| 813 | |
| 814 | assert self.function is not None |
| 815 | if self.function.kind in {GETTER, SETTER}: |
| 816 | getset = self.function.kind.name.lower() |
| 817 | fail(f"@{getset} methods cannot define parameters") |
| 818 | |
| 819 | self.parameter_continuation = '' |
| 820 | return self.next(self.state_parameter, line) |
| 821 | |
| 822 | |
| 823 | def to_required(self) -> None: |
nothing calls this directly
no test coverage detected