Add tests for python version compatibility (#14430)

This commit is contained in:
Micha Reiser 2024-11-18 13:26:55 +01:00 committed by GitHub
parent d81b6cd334
commit 1f07880d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 80 additions and 2 deletions

View file

@ -68,6 +68,10 @@ impl PythonVersion {
Self::Py313
}
pub const fn minimal_supported() -> Self {
Self::Py37
}
pub const fn as_tuple(&self) -> (u8, u8) {
match self {
Self::Py37 => (3, 7),