Skip to content

Commit d82f436

Browse files
committed
fix: define __version__ before importing routers
following d7b80d2 and 8df4c7c
1 parent 860e891 commit d82f436

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

routingpy/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
.. _`Examples`: https://github.com/mthh/routingpy#examples
3030
"""
3131

32-
from .routers import * # noqa: F401
33-
34-
# Delete so options is only available over routingpy.routers.options
35-
del options # noqa: F821
36-
3732
try:
3833
import importlib.metadata
3934

@@ -45,3 +40,8 @@
4540
# Fallback for Python < 3.8,
4641
# even though routingpy requires Python 3.9+
4742
__version__ = None
43+
44+
from .routers import * # noqa: F401
45+
46+
# Delete so options is only available over routingpy.routers.options
47+
del options # noqa: F821

0 commit comments

Comments
 (0)