2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Type , cast
5
+ from typing import Type , Optional , cast
6
6
7
7
import httpx
8
8
@@ -67,7 +67,7 @@ def create(
67
67
extra_query : Query | None = None ,
68
68
extra_body : Body | None = None ,
69
69
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
70
- ) -> IndicatorFeedCreateResponse :
70
+ ) -> Optional [ IndicatorFeedCreateResponse ] :
71
71
"""
72
72
Create new indicator feed
73
73
@@ -102,9 +102,9 @@ def create(
102
102
extra_query = extra_query ,
103
103
extra_body = extra_body ,
104
104
timeout = timeout ,
105
- post_parser = ResultWrapper [IndicatorFeedCreateResponse ]._unwrapper ,
105
+ post_parser = ResultWrapper [Optional [ IndicatorFeedCreateResponse ] ]._unwrapper ,
106
106
),
107
- cast_to = cast (Type [IndicatorFeedCreateResponse ], ResultWrapper [IndicatorFeedCreateResponse ]),
107
+ cast_to = cast (Type [Optional [ IndicatorFeedCreateResponse ] ], ResultWrapper [IndicatorFeedCreateResponse ]),
108
108
)
109
109
110
110
def update (
@@ -119,7 +119,7 @@ def update(
119
119
extra_query : Query | None = None ,
120
120
extra_body : Body | None = None ,
121
121
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
122
- ) -> IndicatorFeedUpdateResponse :
122
+ ) -> Optional [ IndicatorFeedUpdateResponse ] :
123
123
"""
124
124
Update indicator feed data
125
125
@@ -148,9 +148,9 @@ def update(
148
148
extra_query = extra_query ,
149
149
extra_body = extra_body ,
150
150
timeout = timeout ,
151
- post_parser = ResultWrapper [IndicatorFeedUpdateResponse ]._unwrapper ,
151
+ post_parser = ResultWrapper [Optional [ IndicatorFeedUpdateResponse ] ]._unwrapper ,
152
152
),
153
- cast_to = cast (Type [IndicatorFeedUpdateResponse ], ResultWrapper [IndicatorFeedUpdateResponse ]),
153
+ cast_to = cast (Type [Optional [ IndicatorFeedUpdateResponse ] ], ResultWrapper [IndicatorFeedUpdateResponse ]),
154
154
)
155
155
156
156
def list (
@@ -239,7 +239,7 @@ def get(
239
239
extra_query : Query | None = None ,
240
240
extra_body : Body | None = None ,
241
241
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
242
- ) -> IndicatorFeedGetResponse :
242
+ ) -> Optional [ IndicatorFeedGetResponse ] :
243
243
"""
244
244
Get indicator feed metadata
245
245
@@ -265,9 +265,9 @@ def get(
265
265
extra_query = extra_query ,
266
266
extra_body = extra_body ,
267
267
timeout = timeout ,
268
- post_parser = ResultWrapper [IndicatorFeedGetResponse ]._unwrapper ,
268
+ post_parser = ResultWrapper [Optional [ IndicatorFeedGetResponse ] ]._unwrapper ,
269
269
),
270
- cast_to = cast (Type [IndicatorFeedGetResponse ], ResultWrapper [IndicatorFeedGetResponse ]),
270
+ cast_to = cast (Type [Optional [ IndicatorFeedGetResponse ] ], ResultWrapper [IndicatorFeedGetResponse ]),
271
271
)
272
272
273
273
@@ -296,7 +296,7 @@ async def create(
296
296
extra_query : Query | None = None ,
297
297
extra_body : Body | None = None ,
298
298
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
299
- ) -> IndicatorFeedCreateResponse :
299
+ ) -> Optional [ IndicatorFeedCreateResponse ] :
300
300
"""
301
301
Create new indicator feed
302
302
@@ -331,9 +331,9 @@ async def create(
331
331
extra_query = extra_query ,
332
332
extra_body = extra_body ,
333
333
timeout = timeout ,
334
- post_parser = ResultWrapper [IndicatorFeedCreateResponse ]._unwrapper ,
334
+ post_parser = ResultWrapper [Optional [ IndicatorFeedCreateResponse ] ]._unwrapper ,
335
335
),
336
- cast_to = cast (Type [IndicatorFeedCreateResponse ], ResultWrapper [IndicatorFeedCreateResponse ]),
336
+ cast_to = cast (Type [Optional [ IndicatorFeedCreateResponse ] ], ResultWrapper [IndicatorFeedCreateResponse ]),
337
337
)
338
338
339
339
async def update (
@@ -348,7 +348,7 @@ async def update(
348
348
extra_query : Query | None = None ,
349
349
extra_body : Body | None = None ,
350
350
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
351
- ) -> IndicatorFeedUpdateResponse :
351
+ ) -> Optional [ IndicatorFeedUpdateResponse ] :
352
352
"""
353
353
Update indicator feed data
354
354
@@ -379,9 +379,9 @@ async def update(
379
379
extra_query = extra_query ,
380
380
extra_body = extra_body ,
381
381
timeout = timeout ,
382
- post_parser = ResultWrapper [IndicatorFeedUpdateResponse ]._unwrapper ,
382
+ post_parser = ResultWrapper [Optional [ IndicatorFeedUpdateResponse ] ]._unwrapper ,
383
383
),
384
- cast_to = cast (Type [IndicatorFeedUpdateResponse ], ResultWrapper [IndicatorFeedUpdateResponse ]),
384
+ cast_to = cast (Type [Optional [ IndicatorFeedUpdateResponse ] ], ResultWrapper [IndicatorFeedUpdateResponse ]),
385
385
)
386
386
387
387
def list (
@@ -470,7 +470,7 @@ async def get(
470
470
extra_query : Query | None = None ,
471
471
extra_body : Body | None = None ,
472
472
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
473
- ) -> IndicatorFeedGetResponse :
473
+ ) -> Optional [ IndicatorFeedGetResponse ] :
474
474
"""
475
475
Get indicator feed metadata
476
476
@@ -496,9 +496,9 @@ async def get(
496
496
extra_query = extra_query ,
497
497
extra_body = extra_body ,
498
498
timeout = timeout ,
499
- post_parser = ResultWrapper [IndicatorFeedGetResponse ]._unwrapper ,
499
+ post_parser = ResultWrapper [Optional [ IndicatorFeedGetResponse ] ]._unwrapper ,
500
500
),
501
- cast_to = cast (Type [IndicatorFeedGetResponse ], ResultWrapper [IndicatorFeedGetResponse ]),
501
+ cast_to = cast (Type [Optional [ IndicatorFeedGetResponse ] ], ResultWrapper [IndicatorFeedGetResponse ]),
502
502
)
503
503
504
504
0 commit comments