summary refs log tree commit diff
path: root/tests/rest/client/test_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rest/client/test_models.py')
-rw-r--r--tests/rest/client/test_models.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/rest/client/test_models.py b/tests/rest/client/test_models.py

index f8a56c80ca..f14585ccac 100644 --- a/tests/rest/client/test_models.py +++ b/tests/rest/client/test_models.py
@@ -19,18 +19,12 @@ # # import unittest as stdlib_unittest -from typing import TYPE_CHECKING from typing_extensions import Literal -from synapse._pydantic_compat import HAS_PYDANTIC_V2 +from synapse._pydantic_compat import BaseModel, ValidationError from synapse.types.rest.client import EmailRequestTokenBody -if TYPE_CHECKING or HAS_PYDANTIC_V2: - from pydantic.v1 import BaseModel, ValidationError -else: - from pydantic import BaseModel, ValidationError - class ThreepidMediumEnumTestCase(stdlib_unittest.TestCase): class Model(BaseModel):