diff options
author | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-06-10 15:03:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 15:03:50 -0500 |
commit | dad155972160cec2a8c166e2f713064b7c6ca299 (patch) | |
tree | d87470555ad0032efb7822dc149920422ef9e14a /tests/rest/client | |
parent | Wrong retention policy being used when filtering events (lint `ControlVarUsed... (diff) | |
download | synapse-dad155972160cec2a8c166e2f713064b7c6ca299.tar.xz |
Reorganize Pydantic models and types used in handlers (#17279)
Spawning from https://github.com/element-hq/synapse/pull/17187#discussion_r1619492779 around wanting to put `SlidingSyncBody` (parse the request in the rest layer), `SlidingSyncConfig` (from the rest layer, pass to the handler), `SlidingSyncResponse` (pass the response from the handler back to the rest layer to respond) somewhere that doesn't contaminate the imports and cause circular import issues. - Moved Pydantic parsing models to `synapse/types/rest` - Moved handler types to `synapse/types/handlers`
Diffstat (limited to 'tests/rest/client')
-rw-r--r-- | tests/rest/client/test_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rest/client/test_models.py b/tests/rest/client/test_models.py index 534dd7bcf4..f8a56c80ca 100644 --- a/tests/rest/client/test_models.py +++ b/tests/rest/client/test_models.py @@ -24,7 +24,7 @@ from typing import TYPE_CHECKING from typing_extensions import Literal from synapse._pydantic_compat import HAS_PYDANTIC_V2 -from synapse.rest.client.models import EmailRequestTokenBody +from synapse.types.rest.client import EmailRequestTokenBody if TYPE_CHECKING or HAS_PYDANTIC_V2: from pydantic.v1 import BaseModel, ValidationError |