-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: use dynamic version check to satisfy Mypy
- Loading branch information
1 parent
32e1e5f
commit 3c70966
Showing
3 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import sys | ||
from typing import Final | ||
|
||
PY310 = sys.version_info >= (3, 10) | ||
PY311 = sys.version_info >= (3, 11) | ||
PY312 = sys.version_info >= (3, 12) | ||
PY313 = sys.version_info >= (3, 13) | ||
PY310: Final[bool] = sys.version_info >= (3, 10) | ||
PY311: Final[bool] = sys.version_info >= (3, 11) | ||
PY312: Final[bool] = sys.version_info >= (3, 12) | ||
PY313: Final[bool] = sys.version_info >= (3, 13) |