Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ program_environment
Method
program_environment
crates/ty_python_semantic/src/db.rs:103–105 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
101
}
102
103
pub(crate) fn program_environment(&self) -> ProgramEnvironment<'_> {
104
ProgramEnvironment::from_program(self.program())
105
}
106
107
/// Marks `file` as open in the editor.
108
///
Callers
15
report_diagnostic
Method · 0.45
into_fallback_type
Method · 0.45
non_terminal_call_range_recovers_cross_file_cycle
Function · 0.45
non_terminal_call_range_invalidates_when_callable_changes
Function · 0.45
deep_constraint_projection_does_not_overflow
Function · 0.45
module_type_symbols_includes_declared_types_but_not_referenced_types
Function · 0.45
test_symbol_or_fall_back_to
Function · 0.45
implicit_builtin_globals
Function · 0.45
implicit_typing_globals
Function · 0.45
implicit_typing_extensions_globals
Function · 0.45
implicit_sys_globals
Function · 0.45
py_index_empty
Function · 0.45
Calls
1
program
Method · 0.45
Tested by
13
non_terminal_call_range_recovers_cross_file_cycle
Function · 0.36
non_terminal_call_range_invalidates_when_callable_changes
Function · 0.36
deep_constraint_projection_does_not_overflow
Function · 0.36
module_type_symbols_includes_declared_types_but_not_referenced_types
Function · 0.36
test_symbol_or_fall_back_to
Function · 0.36
implicit_builtin_globals
Function · 0.36
implicit_typing_globals
Function · 0.36
implicit_typing_extensions_globals
Function · 0.36
implicit_sys_globals
Function · 0.36
py_index_empty
Function · 0.36
py_index_single_element
Function · 0.36
py_index_more_elements
Function · 0.36