Skip to content

Commit

Permalink
cycle import
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiushin committed Oct 17, 2023
1 parent 1384414 commit 278a45d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deker/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
from deker.dimensions import Dimension, TimeDimension
from deker.errors import DekerValidationError


if TYPE_CHECKING:
from deker.schemas import ArraySchema, AttributeSchema, VArraySchema, TimeDimensionSchema
from deker.schemas import ArraySchema, AttributeSchema, VArraySchema


def process_time_dimension_attrs(attributes: dict, attr_name: str) -> datetime.datetime:
Expand Down Expand Up @@ -150,6 +149,8 @@ def validate_custom_attributes(
:param custom_attributes: old custom attributes
:param attributes: new custom attributes to validate
"""
from deker.schemas import TimeDimensionSchema

if not attributes:
raise DekerValidationError("No attributes passed for update")
for s in schema.dimensions:
Expand Down

0 comments on commit 278a45d

Please sign in to comment.