Skip to content

Commit

Permalink
Fix import loop in validataclass.validators
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryDiv committed Aug 7, 2024
1 parent 1694bbb commit faf22b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/validataclass/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
"""

# Abstract base class (needs to be imported first to avoid import loops)
from .validator import Validator # isort:skip

# Validators
from .allow_empty_string import AllowEmptyString
from .any_of_validator import AnyOfValidator
from .anything_validator import AnythingValidator
from .big_integer_validator import BigIntegerValidator
from .boolean_validator import BooleanValidator
from .dataclass_validator import DataclassValidator, T_Dataclass
from .date_validator import DateValidator
from .datetime_validator import DateTimeValidator, DateTimeFormat
from .datetime_validator import DateTimeFormat, DateTimeValidator
from .decimal_validator import DecimalValidator
from .dict_validator import DictValidator
from .discard_validator import DiscardValidator
Expand All @@ -27,9 +31,8 @@
from .regex_validator import RegexValidator
from .reject_validator import RejectValidator
from .string_validator import StringValidator
from .time_validator import TimeValidator, TimeFormat
from .time_validator import TimeFormat, TimeValidator
from .url_validator import UrlValidator
from .validator import Validator

__all__ = [
'AllowEmptyString',
Expand Down

0 comments on commit faf22b6

Please sign in to comment.