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

Method get_open_lsqb

src/black/brackets.py:214–216  ·  view source on GitHub ↗

Return the most recent opening square bracket (if any).

(self)

Source from the content-addressed store, hash-verified

212 return False
213
214 def get_open_lsqb(self) -> Leaf | None:
215 """Return the most recent opening square bracket (if any)."""
216 return self.bracket_match.get((self.depth - 1, token.RSQB))
217
218
219def is_split_after_delimiter(leaf: Leaf) -> Priority:

Callers 1

is_complex_subscriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected