Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
check
Method · 0.45
run_with_snapshot
Method · 0.45
run_with_snapshot
Method · 0.45
semantic_index
Function · 0.45
class_scope
Function · 0.45
function_scope
Function · 0.45
comprehension_scope
Function · 0.45
multiple_generators
Function · 0.45
nested_generators
Function · 0.45
dupes
Function · 0.45
generic_function
Function · 0.45
generic_class
Function · 0.45
Calls
1
program_file
Method · 0.45
Tested by
11
class_scope
Function · 0.36
function_scope
Function · 0.36
comprehension_scope
Function · 0.36
multiple_generators
Function · 0.36
nested_generators
Function · 0.36
dupes
Function · 0.36
generic_function
Function · 0.36
generic_class
Function · 0.36
reachability_trivial
Function · 0.36
expression_scope
Function · 0.36
scope_iterators
Function · 0.36