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

Method empty

crates/ty_python_core/src/program.rs:71–78  ·  view source on GitHub ↗
(vendored: &VendoredFileSystem)

Source from the content-addressed store, hash-verified

69
70impl ProgramSettings {
71 pub fn empty(vendored: &VendoredFileSystem) -> Self {
72 Self {
73 python_version: PythonVersionWithSource::default(),
74 python_platform: PythonPlatform::default(),
75 search_paths: SearchPaths::empty(vendored),
76 python_environment: Ok(None),
77 }
78 }
79
80 /// The selected environment, or the last usable one if resolution failed.
81 pub fn last_usable_python_environment(&self) -> Option<&PythonEnvironment> {

Callers

nothing calls this directly

Calls 3

OkClass · 0.85
emptyFunction · 0.70
defaultFunction · 0.50

Tested by

no test coverage detected