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

Method python_version

crates/ty_python_core/src/program_file.rs:90–92  ·  view source on GitHub ↗

Returns the Python version associated with this file's program.

(self, db: &'db dyn Db)

Source from the content-addressed store, hash-verified

88
89 /// Returns the Python version associated with this file's program.
90 pub fn python_version(self, db: &'db dyn Db) -> PythonVersion {
91 self.program(db).python_version(db)
92 }
93}

Callers 1

newMethod · 0.45

Calls 1

programMethod · 0.45

Tested by

no test coverage detected