Skip to content

Commit d7db252

Browse files
committed
Remove unused validators param
1 parent 0ca7d5a commit d7db252

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/onegov/form/test_fields.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@
2929
from wtforms.validators import Optional, DataRequired
3030
from wtforms.validators import URL
3131

32-
from typing import Any, TYPE_CHECKING, Self, Sequence, Collection
32+
from typing import Any, TYPE_CHECKING, Sequence, Collection
3333

3434
if TYPE_CHECKING:
3535
from webob.request import _FieldStorageWithFile
36-
from onegov.form.types import (
37-
FormT, Validators)
3836

3937

4038
class DummyPostData(dict[str, Any]):
@@ -61,12 +59,10 @@ def create_file(
6159

6260
def test_upload_field() -> None:
6361
def create_field(
64-
validators: Validators[FormT, Self] | None = None, # type:ignore[misc]
6562
allowed_mimetypes: Collection[str] | None = None,
6663
) -> tuple[Form, UploadField]:
6764
form = Form()
6865
field = UploadField(
69-
validators=validators,
7066
allowed_mimetypes=allowed_mimetypes,
7167
)
7268
field = field.bind(form, 'upload') # type: ignore[attr-defined]
@@ -267,12 +263,10 @@ def create_field(
267263

268264
def test_upload_multiple_field() -> None:
269265
def create_field(
270-
validators: Validators[FormT, Self] | None = None, # type:ignore[misc]
271266
allowed_mimetypes: Sequence[str] | None = None,
272267
) -> tuple[Form, UploadMultipleField]:
273268
form = Form()
274269
field = UploadMultipleField(
275-
validators=validators,
276270
allowed_mimetypes=allowed_mimetypes,
277271
)
278272
field = field.bind(form, 'uploads') # type: ignore[attr-defined]

0 commit comments

Comments
 (0)