1
1
from datetime import datetime
2
2
from decimal import Decimal
3
3
from re import RegexFlag
4
- from typing import Any , Dict , List , Optional , Union , Pattern
4
+ from typing import Any , Dict , List , Optional , Union , Pattern , Collection
5
5
from uuid import UUID
6
6
7
7
from django .core .files .base import File
@@ -38,7 +38,7 @@ class URLValidator(RegexValidator):
38
38
tld_re : Any = ...
39
39
host_re : Any = ...
40
40
schemes : Any = ...
41
- def __init__ (self , schemes : Optional [List [str ]] = ..., ** kwargs : Any ) -> None : ...
41
+ def __init__ (self , schemes : Optional [Collection [str ]] = ..., ** kwargs : Any ) -> None : ...
42
42
43
43
integer_validator : Any
44
44
@@ -52,7 +52,7 @@ class EmailValidator:
52
52
literal_regex : Any = ...
53
53
domain_whitelist : Any = ...
54
54
def __init__ (
55
- self , message : Optional [str ] = ..., code : Optional [str ] = ..., whitelist : Optional [List [str ]] = ...
55
+ self , message : Optional [str ] = ..., code : Optional [str ] = ..., whitelist : Optional [Collection [str ]] = ...
56
56
) -> None : ...
57
57
def __call__ (self , value : Optional [str ]) -> None : ...
58
58
def validate_domain_part (self , domain_part : str ) -> bool : ...
@@ -119,7 +119,7 @@ class FileExtensionValidator:
119
119
code : str = ...
120
120
allowed_extensions : List [str ] = ...
121
121
def __init__ (
122
- self , allowed_extensions : Optional [List [str ]] = ..., message : Optional [str ] = ..., code : Optional [str ] = ...
122
+ self , allowed_extensions : Optional [Collection [str ]] = ..., message : Optional [str ] = ..., code : Optional [str ] = ...
123
123
) -> None : ...
124
124
def __call__ (self , value : File ) -> None : ...
125
125
0 commit comments