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

Method visit_SEMI

src/black/linegen.py:381–383  ·  view source on GitHub ↗

Remove a semicolon and put the other statement on a separate line.

(self, leaf: Leaf)

Source from the content-addressed store, hash-verified

379 yield from self.visit_default(node)
380
381 def visit_SEMI(self, leaf: Leaf) -> Iterator[Line]:
382 """Remove a semicolon and put the other statement on a separate line."""
383 yield from self.line()
384
385 def visit_ENDMARKER(self, leaf: Leaf) -> Iterator[Line]:
386 """End of file. Process outstanding comments and end with a newline."""

Callers

nothing calls this directly

Calls 1

lineMethod · 0.95

Tested by

no test coverage detected