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

Method is_subscript_expr

crates/ruff_python_ast/src/generated.rs:2577–2579  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2575
2576 #[inline]
2577 pub const fn is_subscript_expr(&self) -> bool {
2578 matches!(self, Self::Subscript(_))
2579 }
2580
2581 #[inline]
2582 pub fn subscript_expr(self) -> Option<crate::ExprSubscript> {

Callers 10

fmtMethod · 0.80
fmt_fieldsMethod · 0.80
is_parenthesizedFunction · 0.80
from_expressionMethod · 0.80
zip_instead_of_pairwiseFunction · 0.80
use_pep646_unpackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected