|
1 | 1 | import string |
2 | 2 | from typing import TYPE_CHECKING |
3 | 3 | from typing import Any |
4 | | -from typing import Sequence |
5 | | -from typing import Iterator |
| 4 | +from collections.abc import Sequence |
| 5 | +from collections.abc import Iterator |
6 | 6 | from typing import List |
7 | 7 | from typing import Optional |
8 | 8 | from typing import cast |
@@ -68,7 +68,7 @@ class SchemaValidator(KeywordValidator): |
68 | 68 | def __init__(self, registry: "KeywordValidatorRegistry"): |
69 | 69 | super().__init__(registry) |
70 | 70 |
|
71 | | - self.schema_ids_registry: Optional[List[int]] = [] |
| 71 | + self.schema_ids_registry: Optional[list[int]] = [] |
72 | 72 |
|
73 | 73 | @property |
74 | 74 | def default_validator(self) -> ValueValidator: |
@@ -305,7 +305,7 @@ class OperationValidator(KeywordValidator): |
305 | 305 | def __init__(self, registry: "KeywordValidatorRegistry"): |
306 | 306 | super().__init__(registry) |
307 | 307 |
|
308 | | - self.operation_ids_registry: Optional[List[str]] = [] |
| 308 | + self.operation_ids_registry: Optional[list[str]] = [] |
309 | 309 |
|
310 | 310 | @property |
311 | 311 | def responses_validator(self) -> ResponsesValidator: |
@@ -356,8 +356,7 @@ def __call__( |
356 | 356 | for path in self._get_path_params_from_url(url): |
357 | 357 | if path not in all_params: |
358 | 358 | yield UnresolvableParameterError( |
359 | | - "Path parameter '{}' for '{}' operation in '{}' " |
360 | | - "was not resolved".format(path, name, url) |
| 359 | + f"Path parameter '{path}' for '{name}' operation in '{url}' was not resolved" |
361 | 360 | ) |
362 | 361 | return |
363 | 362 |
|
|
0 commit comments