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

Method with_python_version

crates/ruff_python_parser/tests/fixtures.rs:601–604  ·  view source on GitHub ↗
(mut self, python_version: PythonVersion)

Source from the content-addressed store, hash-verified

599
600 #[must_use]
601 fn with_python_version(mut self, python_version: PythonVersion) -> Self {
602 self.python_version = python_version;
603 self
604 }
605
606 fn into_diagnostics(self) -> Vec<SemanticSyntaxError> {
607 self.diagnostics.into_inner()

Callers 2

test_valid_syntaxFunction · 0.45
test_invalid_syntaxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected