Source code for dls_utilpack.version
"""
The version of the package can be returned as a single string or a dict.
When a string, it comes from the package __version__.
When a dict, it also has __version__,
as well as versions of other depdency packages.
"""
from importlib.metadata import version as importlib_metadata_version
from typing import Optional
import dls_logformatter.version
from dls_utilpack import __version__
# ----------------------------------------------------------
[docs]def version() -> str:
"""
Version of the dls_utilpack package as a string.
"""
return __version__
# ----------------------------------------------------------