Skip to content

Commit fb58a9b

Browse files
authored
[red-knot] Rename TestDbBuilder::typeshed to .custom_typeshed (#15712)
## Summary Correcting a small oversight by me (#15683 (comment)).
1 parent 17a8a55 commit fb58a9b

File tree

1 file changed

+3
-3
lines changed
  • crates/red_knot_python_semantic/src

1 file changed

+3
-3
lines changed

crates/red_knot_python_semantic/src/db.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub(crate) mod tests {
136136
/// Target Python platform
137137
python_platform: PythonPlatform,
138138
/// Path to a custom typeshed directory
139-
typeshed: Option<SystemPathBuf>,
139+
custom_typeshed: Option<SystemPathBuf>,
140140
/// Path and content pairs for files that should be present
141141
files: Vec<(&'a str, &'a str)>,
142142
}
@@ -146,7 +146,7 @@ pub(crate) mod tests {
146146
Self {
147147
python_version: PythonVersion::default(),
148148
python_platform: PythonPlatform::default(),
149-
typeshed: None,
149+
custom_typeshed: None,
150150
files: vec![],
151151
}
152152
}
@@ -171,7 +171,7 @@ pub(crate) mod tests {
171171
.context("Failed to write test files")?;
172172

173173
let mut search_paths = SearchPathSettings::new(vec![src_root]);
174-
search_paths.custom_typeshed = self.typeshed;
174+
search_paths.custom_typeshed = self.custom_typeshed;
175175

176176
Program::from_settings(
177177
&db,

0 commit comments

Comments
 (0)