mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Both mypy and flake8 understand `__all__`, removing the need for warning suppression comments.
12 lines
354 B
Python
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")
|