|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | 3 | import dataclasses |
4 | | -from typing import Any, Optional, Tuple, Type, TypeVar, Union, _GenericAlias |
| 4 | +from typing import Any, Optional, Type, TypeVar, Union, _GenericAlias |
5 | 5 |
|
6 | 6 | from flask_inputfilter.exceptions import ValidationError |
7 | 7 | from flask_inputfilter.validators import BaseValidator |
@@ -216,7 +216,7 @@ def _validate_list_type( |
216 | 216 | self, |
217 | 217 | field_name: str, |
218 | 218 | field_value: Any, |
219 | | - args: Tuple[Type, ...], |
| 219 | + args: tuple[Type, ...], |
220 | 220 | parent_value: dict[str, Any], |
221 | 221 | ) -> None: |
222 | 222 | """Validate list[T] type.""" |
@@ -246,7 +246,7 @@ def _validate_dict_type( |
246 | 246 | self, |
247 | 247 | field_name: str, |
248 | 248 | field_value: Any, |
249 | | - args: Tuple[Type, ...], |
| 249 | + args: tuple[Type, ...], |
250 | 250 | parent_value: dict[str, Any], |
251 | 251 | ) -> None: |
252 | 252 | """Validate dict[K, V] type.""" |
@@ -286,7 +286,7 @@ def _validate_union_type( |
286 | 286 | self, |
287 | 287 | field_name: str, |
288 | 288 | field_value: Any, |
289 | | - args: Tuple[Type, ...], |
| 289 | + args: tuple[Type, ...], |
290 | 290 | parent_value: dict[str, Any], |
291 | 291 | ) -> None: |
292 | 292 | """Validate Union types, particularly Optional[T].""" |
|
0 commit comments