@@ -9,7 +9,7 @@ class DataPoint:
9
9
label : Optional [str ] = None
10
10
order : Optional [int ] = None
11
11
unit : Optional [str ] = None
12
- value : Optional [int ] = None
12
+ value : Optional [float ] = None
13
13
xpath : Optional [str ] = None
14
14
15
15
@staticmethod
@@ -24,7 +24,7 @@ class ExchangeGainsLosses:
24
24
label : Optional [str ] = None
25
25
order : Optional [int ] = None
26
26
unit : Optional [str ] = None
27
- value : Optional [int ] = None
27
+ value : Optional [float ] = None
28
28
xpath : Optional [str ] = None
29
29
30
30
@staticmethod
@@ -39,7 +39,7 @@ class NetCashFlow:
39
39
label : Optional [str ] = None
40
40
order : Optional [int ] = None
41
41
unit : Optional [str ] = None
42
- value : Optional [int ] = None
42
+ value : Optional [float ] = None
43
43
xpath : Optional [str ] = None
44
44
45
45
@staticmethod
@@ -54,7 +54,7 @@ class NetCashFlowFromFinancingActivities:
54
54
label : Optional [str ] = None
55
55
order : Optional [int ] = None
56
56
unit : Optional [str ] = None
57
- value : Optional [int ] = None
57
+ value : Optional [float ] = None
58
58
xpath : Optional [str ] = None
59
59
60
60
@staticmethod
@@ -76,17 +76,15 @@ def from_dict(d):
76
76
return CashFlowStatement (
77
77
exchange_gains_losses = None
78
78
if "exchange_gains_losses" not in d
79
- else [ ExchangeGainsLosses .from_dict (d ["exchange_gains_losses" ])] ,
79
+ else ExchangeGainsLosses .from_dict (d ["exchange_gains_losses" ]),
80
80
net_cash_flow = None
81
81
if "net_cash_flow" not in d
82
- else [ NetCashFlow .from_dict (d ["net_cash_flow" ])] ,
82
+ else NetCashFlow .from_dict (d ["net_cash_flow" ]),
83
83
net_cash_flow_from_financing_activities = None
84
84
if "net_cash_flow_from_financing_activities" not in d
85
- else [
86
- NetCashFlowFromFinancingActivities .from_dict (
87
- d ["net_cash_flow_from_financing_activities" ]
88
- )
89
- ],
85
+ else NetCashFlowFromFinancingActivities .from_dict (
86
+ d ["net_cash_flow_from_financing_activities" ]
87
+ ),
90
88
)
91
89
92
90
@@ -97,7 +95,7 @@ class ComprehensiveIncomeLoss:
97
95
label : Optional [str ] = None
98
96
order : Optional [int ] = None
99
97
unit : Optional [str ] = None
100
- value : Optional [int ] = None
98
+ value : Optional [float ] = None
101
99
xpath : Optional [str ] = None
102
100
103
101
@staticmethod
@@ -112,7 +110,7 @@ class ComprehensiveIncomeLossAttributableToParent:
112
110
label : Optional [str ] = None
113
111
order : Optional [int ] = None
114
112
unit : Optional [str ] = None
115
- value : Optional [int ] = None
113
+ value : Optional [float ] = None
116
114
xpath : Optional [str ] = None
117
115
118
116
@staticmethod
@@ -127,7 +125,7 @@ class OtherComprehensiveIncomeLoss:
127
125
label : Optional [str ] = None
128
126
order : Optional [int ] = None
129
127
unit : Optional [str ] = None
130
- value : Optional [int ] = None
128
+ value : Optional [float ] = None
131
129
xpath : Optional [str ] = None
132
130
133
131
@staticmethod
@@ -149,21 +147,17 @@ def from_dict(d):
149
147
return ComprehensiveIncome (
150
148
comprehensive_income_loss = None
151
149
if "comprehensive_income_loss" not in d
152
- else [ ComprehensiveIncomeLoss .from_dict (d ["comprehensive_income_loss" ])] ,
150
+ else ComprehensiveIncomeLoss .from_dict (d ["comprehensive_income_loss" ]),
153
151
comprehensive_income_loss_attributable_to_parent = None
154
152
if "comprehensive_income_loss_attributable_to_parent" not in d
155
- else [
156
- ComprehensiveIncomeLossAttributableToParent .from_dict (
157
- d ["comprehensive_income_loss_attributable_to_parent" ]
158
- )
159
- ],
153
+ else ComprehensiveIncomeLossAttributableToParent .from_dict (
154
+ d ["comprehensive_income_loss_attributable_to_parent" ]
155
+ ),
160
156
other_comprehensive_income_loss = None
161
157
if "other_comprehensive_income_loss" not in d
162
- else [
163
- OtherComprehensiveIncomeLoss .from_dict (
164
- d ["other_comprehensive_income_loss" ]
165
- )
166
- ],
158
+ else OtherComprehensiveIncomeLoss .from_dict (
159
+ d ["other_comprehensive_income_loss" ]
160
+ ),
167
161
)
168
162
169
163
@@ -174,7 +168,7 @@ class BasicEarningsPerShare:
174
168
label : Optional [str ] = None
175
169
order : Optional [int ] = None
176
170
unit : Optional [str ] = None
177
- value : Optional [int ] = None
171
+ value : Optional [float ] = None
178
172
xpath : Optional [str ] = None
179
173
180
174
@staticmethod
@@ -189,7 +183,7 @@ class CostOfRevenue:
189
183
label : Optional [str ] = None
190
184
order : Optional [int ] = None
191
185
unit : Optional [str ] = None
192
- value : Optional [int ] = None
186
+ value : Optional [float ] = None
193
187
xpath : Optional [str ] = None
194
188
195
189
@staticmethod
@@ -204,7 +198,7 @@ class GrossProfit:
204
198
label : Optional [str ] = None
205
199
order : Optional [int ] = None
206
200
unit : Optional [str ] = None
207
- value : Optional [int ] = None
201
+ value : Optional [float ] = None
208
202
xpath : Optional [str ] = None
209
203
210
204
@staticmethod
@@ -219,7 +213,7 @@ class OperatingExpenses:
219
213
label : Optional [str ] = None
220
214
order : Optional [int ] = None
221
215
unit : Optional [str ] = None
222
- value : Optional [int ] = None
216
+ value : Optional [float ] = None
223
217
xpath : Optional [str ] = None
224
218
225
219
@staticmethod
@@ -234,7 +228,7 @@ class Revenues:
234
228
label : Optional [str ] = None
235
229
order : Optional [int ] = None
236
230
unit : Optional [str ] = None
237
- value : Optional [int ] = None
231
+ value : Optional [float ] = None
238
232
xpath : Optional [str ] = None
239
233
240
234
@staticmethod
@@ -256,19 +250,17 @@ def from_dict(d):
256
250
return IncomeStatement (
257
251
basic_earnings_per_share = None
258
252
if "basic_earnings_per_share" not in d
259
- else [ BasicEarningsPerShare .from_dict (d ["basic_earnings_per_share" ])] ,
253
+ else BasicEarningsPerShare .from_dict (d ["basic_earnings_per_share" ]),
260
254
cost_of_revenue = None
261
255
if "cost_of_revenue" not in d
262
- else [ CostOfRevenue .from_dict (d ["cost_of_revenue" ])] ,
256
+ else CostOfRevenue .from_dict (d ["cost_of_revenue" ]),
263
257
gross_profit = None
264
258
if "gross_profit" not in d
265
- else [ GrossProfit .from_dict (d ["gross_profit" ])] ,
259
+ else GrossProfit .from_dict (d ["gross_profit" ]),
266
260
operating_expenses = None
267
261
if "operating_expenses" not in d
268
- else [OperatingExpenses .from_dict (d ["operating_expenses" ])],
269
- revenues = None
270
- if "revenues" not in d
271
- else [Revenues .from_dict (d ["revenues" ])],
262
+ else OperatingExpenses .from_dict (d ["operating_expenses" ]),
263
+ revenues = None if "revenues" not in d else Revenues .from_dict (d ["revenues" ]),
272
264
)
273
265
274
266
@@ -288,13 +280,13 @@ def from_dict(d):
288
280
else {k : DataPoint .from_dict (v ) for (k , v ) in d ["balance_sheet" ].items ()},
289
281
cash_flow_statement = None
290
282
if "cash_flow_statement" not in d
291
- else [ CashFlowStatement .from_dict (d ["cash_flow_statement" ])] ,
283
+ else CashFlowStatement .from_dict (d ["cash_flow_statement" ]),
292
284
comprehensive_income = None
293
285
if "comprehensive_income" not in d
294
- else [ ComprehensiveIncome .from_dict (d ["comprehensive_income" ])] ,
286
+ else ComprehensiveIncome .from_dict (d ["comprehensive_income" ]),
295
287
income_statement = None
296
288
if "income_statement" not in d
297
- else [ IncomeStatement .from_dict (d ["income_statement" ])] ,
289
+ else IncomeStatement .from_dict (d ["income_statement" ]),
298
290
)
299
291
300
292
@@ -321,7 +313,7 @@ def from_dict(d):
321
313
filing_date = d .get ("filing_date" , None ),
322
314
financials = None
323
315
if "financials" not in d
324
- else [ Financials .from_dict (d ["financials" ])] ,
316
+ else Financials .from_dict (d ["financials" ]),
325
317
fiscal_period = d .get ("fiscal_period" , None ),
326
318
fiscal_year = d .get ("fiscal_year" , None ),
327
319
source_filing_file_url = d .get ("source_filing_file_url" , None ),
0 commit comments