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

Method is_nested

crates/ruff_python_formatter/src/context.rs:184–186  ·  view source on GitHub ↗

Returns `true` if the interpolated string state is [`Self::NestedInterpolatedElement`].

(self)

Source from the content-addressed store, hash-verified

182
183 /// Returns `true` if the interpolated string state is [`Self::NestedInterpolatedElement`].
184 pub(crate) fn is_nested(self) -> bool {
185 matches!(self, Self::NestedInterpolatedElement(..))
186 }
187}
188
189/// The position of a top-level statement in the module.

Callers 1

preferred_quote_styleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected