Skip to content

Commit 492933e

Browse files
committed
Update typing
1 parent 264b6ec commit 492933e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/asyncapi_python/amqp/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ def decode_message(message: bytes, schema: type[T]) -> T:
3333

3434

3535
@cache
36-
def union_model(types: tuple[type[U], ...]) -> type[UnionModel[U]]:
36+
def union_model(types: tuple[type[U], ...]) -> type[RootModel[U]]:
3737
UnionType = Union.__getitem__(types)
3838
return UnionModel[UnionType] # type: ignore

0 commit comments

Comments
 (0)