File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/miru_server_sdk/resources Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- import json
6- from typing import cast
5+ from typing import cast , Any
76
87from .._models import construct_type
98from .._resource import SyncAPIResource , AsyncAPIResource
1312
1413
1514class WebhooksResource (SyncAPIResource ):
16- def unwrap (self , payload : str ) -> UnwrapWebhookEvent :
15+ def unwrap (self , payload : Any ) -> UnwrapWebhookEvent :
1716 return cast (
1817 UnwrapWebhookEvent ,
1918 construct_type (
2019 type_ = UnwrapWebhookEvent ,
21- value = json . loads ( payload ) ,
20+ value = payload ,
2221 ),
2322 )
2423
2524
2625class AsyncWebhooksResource (AsyncAPIResource ):
27- def unwrap (self , payload : str ) -> UnwrapWebhookEvent :
26+ def unwrap (self , payload : Any ) -> UnwrapWebhookEvent :
2827 return cast (
2928 UnwrapWebhookEvent ,
3029 construct_type (
3130 type_ = UnwrapWebhookEvent ,
32- value = json . loads ( payload ) ,
31+ value = payload ,
3332 ),
3433 )
You can’t perform that action at this time.
0 commit comments