Skip to content

Commit

Permalink
[red-knot] Rename TestDbBuilder::typeshed to .custom_typeshed (#1…
Browse files Browse the repository at this point in the history
…5712)

## Summary

Correcting a small oversight by me
(#15683 (comment)).
  • Loading branch information
sharkdp authored Jan 24, 2025
1 parent 17a8a55 commit fb58a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/red_knot_python_semantic/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub(crate) mod tests {
/// Target Python platform
python_platform: PythonPlatform,
/// Path to a custom typeshed directory
typeshed: Option<SystemPathBuf>,
custom_typeshed: Option<SystemPathBuf>,
/// Path and content pairs for files that should be present
files: Vec<(&'a str, &'a str)>,
}
Expand All @@ -146,7 +146,7 @@ pub(crate) mod tests {
Self {
python_version: PythonVersion::default(),
python_platform: PythonPlatform::default(),
typeshed: None,
custom_typeshed: None,
files: vec![],
}
}
Expand All @@ -171,7 +171,7 @@ pub(crate) mod tests {
.context("Failed to write test files")?;

let mut search_paths = SearchPathSettings::new(vec![src_root]);
search_paths.custom_typeshed = self.typeshed;
search_paths.custom_typeshed = self.custom_typeshed;

Program::from_settings(
&db,
Expand Down

0 comments on commit fb58a9b

Please sign in to comment.