Return True if there is an open for or lambda expression on the line. See maybe_increment_for_loop_variable and maybe_increment_lambda_arguments for details.
(self)
| 129 | self.maybe_increment_for_loop_variable(leaf) |
| 130 | |
| 131 | def any_open_for_or_lambda(self) -> bool: |
| 132 | """Return True if there is an open for or lambda expression on the line. |
| 133 | |
| 134 | See maybe_increment_for_loop_variable and maybe_increment_lambda_arguments |
| 135 | for details.""" |
| 136 | return bool(self._for_loop_depths or self._lambda_argument_depths) |
| 137 | |
| 138 | def any_open_brackets(self) -> bool: |
| 139 | """Return True if there is an yet unmatched open bracket on the line.""" |