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

1#!/usr/bin/python3 

2""" 

3This script contains the version of this package. 

4 

5Update this to create a new release. 

6To get the current version run this script. 

7""" 

8 

9from __future__ import annotations 

10 

11import typing 

12 

13__all__ = ("VERSION", "version_info") 

14 

15VERSION = "0.150.1" 

16 

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

22 

23del annotations, typing 

24 

25if __name__ == "__main__": # pragma: no cover 

26 print(VERSION)