Skip to content

Commit 2d367c8

Browse files
committed
More & more python3.8+ compatiblity test fixes
1 parent a7ab834 commit 2d367c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_custom_errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, List
1+
from typing import Any, Dict, List, Optional
22
from unittest import TestCase
33
from unittest.mock import ANY
44

@@ -131,7 +131,7 @@ def test_custom_pydantic_error_overrides():
131131
class CustomErrorWithCustomTemplate(PydanticCustomError):
132132
@override
133133
def __new__(
134-
cls, error_type: LiteralString, my_custom_setting: str, context: dict[str, Any] | None = None
134+
cls, error_type: LiteralString, my_custom_setting: str, context: Optional[Dict[str, Any]] = None
135135
) -> Self:
136136
message_template = (
137137
"'{my_custom_value}' setting requires a specific my custom field value, got '{wrong_value}'"

0 commit comments

Comments
 (0)