Skip to content

Commit

Permalink
Do not leak modules imported by __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Oct 20, 2024
1 parent d645ec6 commit 7387d00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hictkpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
# SPDX-License-Identifier: MIT


from importlib.metadata import version
def _get_hictkpy_version() -> str:
from importlib.metadata import version

return version("hictkpy")


from ._hictkpy import (
File,
Expand All @@ -19,7 +23,7 @@
is_scool_file,
)

__version__ = version("hictkpy")
__version__ = _get_hictkpy_version()
__all__ = [
"__doc__",
"File",
Expand Down

0 comments on commit 7387d00

Please sign in to comment.