[red-knot] Rename TestDbBuilder::typeshed to .custom_typeshed (#15712)

## Summary

Correcting a small oversight by me
(https://github.com/astral-sh/ruff/pull/15683#discussion_r1926830914).
This commit is contained in:
David Peter 2025-01-24 11:25:23 +01:00 committed by GitHub
parent 17a8a55f08
commit fb58a9b610
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)>,
}
@ -146,7 +146,7 @@ pub(crate) mod tests {
Self {
python_version: PythonVersion::default(),
python_platform: PythonPlatform::default(),
typeshed: None,
custom_typeshed: None,
files: vec![],
}
}
@ -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,