mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 14:00:51 -05:00
[ty] Use 3.14 as the default version (#20759)
## Summary Bump the latest supported Python version of ty to 3.14 and updates some references from 3.13 to 3.14. This also fixes a bug with `dataclasses.field` on 3.14 (which adds a new keyword-only parameter to that function, breaking our previously naive matching on the parameter structure of that function). ## Test Plan A `ty check` on a file with template strings (without any further configuration) doesn't raise errors anymore.
This commit is contained in:
@@ -67,8 +67,8 @@ impl PythonVersion {
|
||||
}
|
||||
|
||||
pub const fn latest_ty() -> Self {
|
||||
// Make sure to update the default value for `EnvironmentOptions::python_version` when bumping this version.
|
||||
Self::PY313
|
||||
// Make sure to update the default value for `EnvironmentOptions::python_version` when bumping this version.
|
||||
Self::PY314
|
||||
}
|
||||
|
||||
pub const fn as_tuple(self) -> (u8, u8) {
|
||||
|
||||
Reference in New Issue
Block a user