Skip to content

Commit 1f3164f

Browse files
committed
Use imperative import to avoid lint (import order) and as a good convention when side-effects is the intention.
1 parent 22226e5 commit 1f3164f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
entry_points, files, metadata, requires, version)
44

55
# Import for installation side-effects.
6-
from . import _hooks # noqa: F401
6+
__import__('importlib_metadata._hooks')
77

88

99
__all__ = [

0 commit comments

Comments
 (0)