Files
nimbusflow/backend/models/__init__.py

42 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ------------------------------------------------------------
# Public interface for the ``myapp.models`` package.
# By reexporting the mostused symbols here callers can simply do:
#
# from myapp.models import Member, Service, ScheduleStatus
#
# This keeps import statements short and hides the internal file layout
# (whether a model lives in ``dataclasses.py`` or elsewhere).
# ------------------------------------------------------------
# Reexport all dataclass models
from backend.models.dataclasses import ( # noqa: F401 (reexported names)
AcceptedLog,
Classification,
DeclineLog,
Member,
Schedule,
ScheduledLog,
Service,
ServiceAvailability,
ServiceType,
)
# Reexport any enums that belong to the model layer
from backend.models.enums import ScheduleStatus # noqa: F401
# Optional: define what ``from myapp.models import *`` should export.
# This is useful for documentation tools and for IDE autocompletion.
__all__ = [
# Dataclasses
"AcceptedLog",
"Classification",
"DeclineLog",
"Member",
"Schedule",
"ScheduledLog",
"Service",
"ServiceAvailability",
"ServiceType",
# Enums
"ScheduleStatus",
]