MCPcopy Create free account
hub / github.com/astral-sh/ruff / is_last

Method is_last

crates/ruff_python_formatter/src/string/docstring.rs:629–631  ·  view source on GitHub ↗

Whether this is the last line in the docstring or not.

(&self)

Source from the content-addressed store, hash-verified

627
628 /// Whether this is the last line in the docstring or not.
629 fn is_last(&self) -> bool {
630 self.next.is_none()
631 }
632}
633
634/// Represents a single reformatted code line in a docstring.

Callers 3

formatMethod · 0.80
as_outputMethod · 0.80

Calls 1

is_noneMethod · 0.45

Tested by

no test coverage detected