From 186a2e546fcc06244fc5156b0b534f9c8fb4f421 Mon Sep 17 00:00:00 2001 From: molozey Date: Fri, 6 Dec 2024 00:26:45 +0300 Subject: [PATCH 1/2] chore: eq for Schema --- litestar/openapi/spec/schema.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litestar/openapi/spec/schema.py b/litestar/openapi/spec/schema.py index cb998ead8e..f54c483e9a 100644 --- a/litestar/openapi/spec/schema.py +++ b/litestar/openapi/spec/schema.py @@ -658,6 +658,9 @@ def field_aliases(cls) -> dict[str, str]: cls._field_aliases = retval # type: ignore[attr-defined] return retval + def __eq__(self, other: "Schema"): + return super().__eq__(other) + @dataclass class SchemaDataContainer(Schema): From bd70c2fd1807dbfa11d7374a5b20d3220ba1797e Mon Sep 17 00:00:00 2001 From: molozey Date: Fri, 6 Dec 2024 00:33:45 +0300 Subject: [PATCH 2/2] chore: eq for Schema --- litestar/openapi/spec/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litestar/openapi/spec/schema.py b/litestar/openapi/spec/schema.py index f54c483e9a..cfabcdf213 100644 --- a/litestar/openapi/spec/schema.py +++ b/litestar/openapi/spec/schema.py @@ -658,7 +658,7 @@ def field_aliases(cls) -> dict[str, str]: cls._field_aliases = retval # type: ignore[attr-defined] return retval - def __eq__(self, other: "Schema"): + def __eq__(self, other: object): return super().__eq__(other)