Skip to content

Commit

Permalink
chore: added value_type to String validator, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaju1 committed Feb 7, 2025
1 parent 8de0e46 commit 65963a5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions yamale/validators/validators.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import ipaddress
import re
from datetime import date, datetime
import ipaddress
from .base import Validator
from . import constraints as con

from .. import util
from . import constraints as con
from .base import Validator

# ABCs for containers were moved to their own module
try:
from collections.abc import Sequence, Mapping
from collections.abc import Mapping, Sequence
except ImportError:
from collections import Sequence, Mapping
from collections import Mapping, Sequence


class String(Validator):
"""String validator"""

value_type = str
tag = "str"
constraints = [
con.LengthMin,
Expand Down

0 comments on commit 65963a5

Please sign in to comment.