Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/turbohtml/_version.py: 70%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

1from pathlib import Path as _Path 

2from typing import Final 

3 

4from . import __file__ as _PACKAGE_FILE 

5 

6__version__: Final[str] 

7if _Path(__file__).parent == _Path(_PACKAGE_FILE).parent: 

8 __version__ = "0.0.0.dev1+g69988b7" 

9else: 

10 # Editable rebuilds can change Meson's version without replacing installed metadata. 

11 from importlib.metadata import version as _installed_version 

12 

13 __version__ = _installed_version("turbohtml") 

14 

15__all__ = ["__version__"]