mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 05:20:49 -05:00
[ty] Default to latest supported python version (#17938)
This commit is contained in:
@@ -59,6 +59,10 @@ impl PythonVersion {
|
||||
Self::PY313
|
||||
}
|
||||
|
||||
pub const fn latest_ty() -> Self {
|
||||
Self::PY313
|
||||
}
|
||||
|
||||
pub const fn as_tuple(self) -> (u8, u8) {
|
||||
(self.major, self.minor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user