mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:16 +00:00
[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:
parent
17a8a55f08
commit
fb58a9b610
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue