Get the version of the currently-running Python interpreter. Returns: version: (major, minor, revision) as a tuple[int, int, int]
()
| 19 | |
| 20 | |
| 21 | def get_python_version() -> tuple[int, int, int]: |
| 22 | """ |
| 23 | Get the version of the currently-running Python interpreter. |
| 24 | |
| 25 | Returns: |
| 26 | version: (major, minor, revision) as a tuple[int, int, int] |
| 27 | """ |
| 28 | |
| 29 | return cast(tuple[int, int, int], tuple(sys.version_info[:3])) |
no outgoing calls
no test coverage detected
searching dependent graphs…