from .api import (
    Distribution, PackageNotFoundError, distribution, distributions,
    entry_points, files, metadata, requires, version)

# Import for installation side-effects.
from . import _hooks  # noqa: F401


__all__ = [
    'Distribution',
    'PackageNotFoundError',
    'distribution',
    'distributions',
    'entry_points',
    'files',
    'metadata',
    'requires',
    'version',
    ]


__version__ = version(__name__)

from .api import (
    Distribution, PackageNotFoundError, distribution, distributions,
    entry_points, files, metadata, requires, version)

# Import for installation side-effects.
__import__('importlib_metadata._hooks')


__all__ = [
    'Distribution',
    'PackageNotFoundError',
    'distribution',
    'distributions',
    'entry_points',
    'files',
    'metadata',
    'requires',
    'version',
    ]


__version__ = version(__name__)

Use imperative import to avoid lint (import order) and as a good convention when side-effects is the intention.
Use imperative import to avoid lint (import order) and as a good convention when side-effects is the intention.
