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

Method python_file

crates/ty_python_core/src/scope.rs:30–32  ·  view source on GitHub ↗
(self, db: &'db dyn Db)

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn python_file(self, db: &'db dyn Db) -> PythonFile<'db> {
31 self.program_file(db).python_file(db)
32 }
33
34 pub fn program(self, db: &'db dyn Db) -> Program<'db> {
35 self.program_file(db).program(db)

Callers 15

checkMethod · 0.45
run_with_snapshotMethod · 0.45
run_with_snapshotMethod · 0.45
semantic_indexFunction · 0.45
class_scopeFunction · 0.45
function_scopeFunction · 0.45
comprehension_scopeFunction · 0.45
multiple_generatorsFunction · 0.45
nested_generatorsFunction · 0.45
dupesFunction · 0.45
generic_functionFunction · 0.45
generic_classFunction · 0.45

Calls 1

program_fileMethod · 0.45

Tested by 11

class_scopeFunction · 0.36
function_scopeFunction · 0.36
comprehension_scopeFunction · 0.36
multiple_generatorsFunction · 0.36
nested_generatorsFunction · 0.36
dupesFunction · 0.36
generic_functionFunction · 0.36
generic_classFunction · 0.36
reachability_trivialFunction · 0.36
expression_scopeFunction · 0.36
scope_iteratorsFunction · 0.36