Skip to content

Commit

Permalink
fix circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
patlevin committed Jul 15, 2021
1 parent b4843e7 commit d9382e3
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions fdlite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# -*- coding: utf-8 -*-
from .errors import ArgumentError, CoordinateRangeError # noqa:F401
from .errors import InvalidEnumError, MissingExifDataError # noqa:F401
from .errors import ModelDataError # noqa:F401
from .face_detection import FaceDetection, FaceDetectionModel # noqa:F401
from .face_detection import FaceIndex # noqa:F401
from .face_landmark import FaceLandmark, face_detection_to_roi # noqa:F401
Expand All @@ -10,24 +13,4 @@
from .iris_landmark import iris_roi_from_face_landmarks # noqa:F401


class InvalidEnumError(Exception):
"""Raised when a function was called with an invalid Enum value"""


class ModelDataError(Exception):
"""Raised when a model returns data that is incompatible"""


class CoordinateRangeError(Exception):
"""Raised when coordinates are expected to be in a different range"""


class ArgumentError(Exception):
"""Raised when an argument is of the wrong type or malformed"""


class MissingExifDataError(Exception):
"""Raised if required EXIF data is missing from an image"""


__version__ = '0.4.0'

0 comments on commit d9382e3

Please sign in to comment.