Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ pattern
Method
pattern
crates/ruff_python_formatter/src/pattern/mod.rs:396–401 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
394
}
395
396
fn pattern(self) -> Option<&'a Pattern> {
397
match self {
398
First::None | First::Token => None,
399
First::Pattern(pattern) => Some(pattern),
400
}
401
}
402
}
Callers
1
can_pattern_omit_optional_parentheses
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected