Skip to content

Commit 00e52e8

Browse files
committed
Explicitly re-export names from __init__ module
Both mypy and flake8 understand `__all__`, removing the need for warning suppression comments.
1 parent fe1d0c6 commit 00e52e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

model_utils/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import importlib.metadata
22

3-
from .choices import Choices # noqa:F401
4-
from .tracker import FieldTracker, ModelTracker # noqa:F401
3+
from .choices import Choices
4+
from .tracker import FieldTracker, ModelTracker
55

66
try:
77
__version__ = importlib.metadata.version('django-model-utils')
88
except importlib.metadata.PackageNotFoundError: # pragma: no cover
99
# package is not installed
1010
__version__ = None
11+
12+
__all__ = ("Choices", "FieldTracker", "ModelTracker")

0 commit comments

Comments
 (0)