django-model-utils/model_utils/__init__.py
Maarten ter Huurne 00e52e8508 Explicitly re-export names from __init__ module
Both mypy and flake8 understand `__all__`, removing the need for
warning suppression comments.
2024-03-22 14:50:31 +01:00

12 lines
354 B
Python

import importlib.metadata
from .choices import Choices
from .tracker import FieldTracker, ModelTracker
try:
__version__ = importlib.metadata.version('django-model-utils')
except importlib.metadata.PackageNotFoundError: # pragma: no cover
# package is not installed
__version__ = None
__all__ = ("Choices", "FieldTracker", "ModelTracker")