Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaju1 committed Feb 7, 2025
1 parent e3b58d8 commit 8de0e46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions yamale/validators/constraints.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
from __future__ import absolute_import
import re

import datetime
import ipaddress
import re

from yamale.util import to_unicode
from .base import Validator

from .. import util
from .base import Validator


class Constraint(object):
keywords = {} # Keywords and types accepted by this constraint
is_active = False

def __init__(self, value_type, kwargs):
self.field_name = None # Added for custom field-aware messages
self.field_name = None # Added for custom field-aware messages
self.value_type = value_type # Added for custom type-aware messages
self._parseKwargs(kwargs)

Expand Down

0 comments on commit 8de0e46

Please sign in to comment.