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

Method is_byte_string

crates/ruff_python_ast/src/nodes.rs:2303–2305  ·  view source on GitHub ↗

Does the string have a `b` or `B` prefix?

(self)

Source from the content-addressed store, hash-verified

2301
2302 /// Does the string have a `b` or `B` prefix?
2303 pub const fn is_byte_string(self) -> bool {
2304 self.0.contains(AnyStringFlagsInner::B_PREFIX)
2305 }
2306
2307 #[must_use]
2308 pub fn with_quote_style(mut self, quotes: Quote) -> Self {

Callers 4

normalize_stringFunction · 0.80
parse_escaped_charMethod · 0.80
parseMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected