MCPcopy
hub / github.com/psf/black / any_open_brackets

Method any_open_brackets

src/black/brackets.py:138–140  ·  view source on GitHub ↗

Return True if there is an yet unmatched open bracket on the line.

(self)

Source from the content-addressed store, hash-verified

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."""
140 return bool(self.bracket_match)
141
142 def max_delimiter_priority(self, exclude: Iterable[LeafID] = ()) -> Priority:
143 """Return the highest priority of a delimiter found on the line.

Callers 3

append_commentMethod · 0.80
visit_defaultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected