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

Method _get_illegal_split_indices

src/black/trans.py:1788–1797  ·  view source on GitHub ↗
(self, string: str)

Source from the content-addressed store, hash-verified

1786 yield from iter_fexpr_spans(string)
1787
1788 def _get_illegal_split_indices(self, string: str) -> set[Index]:
1789 illegal_indices: set[Index] = set()
1790 iterators = [
1791 self._iter_fexpr_slices(string),
1792 self._iter_nameescape_slices(string),
1793 ]
1794 for it in iterators:
1795 for begin, end in it:
1796 illegal_indices.update(range(begin, end))
1797 return illegal_indices
1798
1799 def _get_break_idx(self, string: str, max_break_idx: int) -> int | None:
1800 """

Callers 1

_get_break_idxMethod · 0.95

Calls 2

_iter_fexpr_slicesMethod · 0.95

Tested by

no test coverage detected