We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 264b6ec commit 492933eCopy full SHA for 492933e
1 file changed
src/asyncapi_python/amqp/utils.py
@@ -33,6 +33,6 @@ def decode_message(message: bytes, schema: type[T]) -> T:
33
34
35
@cache
36
-def union_model(types: tuple[type[U], ...]) -> type[UnionModel[U]]:
+def union_model(types: tuple[type[U], ...]) -> type[RootModel[U]]:
37
UnionType = Union.__getitem__(types)
38
return UnionModel[UnionType] # type: ignore
0 commit comments