mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-30 15:17:59 +00:00
[ty] Default to latest supported python version (#17938)
This commit is contained in:
parent
5eb215e8e5
commit
067a8ac574
8 changed files with 85 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue