Coverage for typed_stream/version.py: 88%
8 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-12 21:24 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-12 21:24 +0000
1#!/usr/bin/python3
2"""
3This script contains the version of this package.
5Update this to create a new release.
6To get the current version run this script.
7"""
9from __future__ import annotations
11import typing
13__all__ = ("VERSION", "version_info")
15VERSION = "0.150.1"
17version_info: tuple[int, int, int] = typing.cast(
18 tuple[int, int, int], tuple(map(int, VERSION.split(".")))
19)
20if len(version_info) != 3:
21 raise AssertionError(f"Invalid version: {VERSION}")
23del annotations, typing
25if __name__ == "__main__": # pragma: no cover
26 print(VERSION)