[ty] Default to latest supported python version (#17938)

This commit is contained in:
Micha Reiser
2025-05-08 16:58:35 +02:00
committed by GitHub
parent 5eb215e8e5
commit 067a8ac574
8 changed files with 85 additions and 6 deletions

View File

@@ -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)
}