diff --git a/src/validataclass/validators/__init__.py b/src/validataclass/validators/__init__.py index 0eeb1e1..4094dff 100644 --- a/src/validataclass/validators/__init__.py +++ b/src/validataclass/validators/__init__.py @@ -4,6 +4,10 @@ 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 @@ -11,7 +15,7 @@ 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 @@ -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',