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

Method quote_style

crates/ruff_python_codegen/src/generator.rs:82–87  ·  view source on GitHub ↗
(&self, flags: impl StringFlags)

Source from the content-addressed store, hash-verified

80 /// - [`AstUnparse`](`Mode::AstUnparse`): Always return [`Quote::Single`].
81 #[must_use]
82 fn quote_style(&self, flags: impl StringFlags) -> Quote {
83 match self {
84 Self::Default => flags.quote_style(),
85 Self::AstUnparse => Quote::Single,
86 }
87 }
88}
89
90pub struct Generator<'a> {

Callers 4

p_bytes_reprMethod · 0.45
p_str_reprMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected