from __future__ import annotations

try:
    # Prefer the installed package metadata (works from wheel/sdist installs)
    from importlib.metadata import version as _version  # py>=3.8

    __version__ = _version("scalefree")
except Exception:  # pragma: no cover
    # Fallback for editable installs / unusual envs
    __version__ = "0.0.0"
