@@ -9,7 +9,7 @@ class DataPoint:
99 label : Optional [str ] = None
1010 order : Optional [int ] = None
1111 unit : Optional [str ] = None
12- value : Optional [int ] = None
12+ value : Optional [float ] = None
1313 xpath : Optional [str ] = None
1414
1515 @staticmethod
@@ -24,7 +24,7 @@ class ExchangeGainsLosses:
2424 label : Optional [str ] = None
2525 order : Optional [int ] = None
2626 unit : Optional [str ] = None
27- value : Optional [int ] = None
27+ value : Optional [float ] = None
2828 xpath : Optional [str ] = None
2929
3030 @staticmethod
@@ -39,7 +39,7 @@ class NetCashFlow:
3939 label : Optional [str ] = None
4040 order : Optional [int ] = None
4141 unit : Optional [str ] = None
42- value : Optional [int ] = None
42+ value : Optional [float ] = None
4343 xpath : Optional [str ] = None
4444
4545 @staticmethod
@@ -54,7 +54,7 @@ class NetCashFlowFromFinancingActivities:
5454 label : Optional [str ] = None
5555 order : Optional [int ] = None
5656 unit : Optional [str ] = None
57- value : Optional [int ] = None
57+ value : Optional [float ] = None
5858 xpath : Optional [str ] = None
5959
6060 @staticmethod
@@ -76,17 +76,15 @@ def from_dict(d):
7676 return CashFlowStatement (
7777 exchange_gains_losses = None
7878 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" ]),
8080 net_cash_flow = None
8181 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" ]),
8383 net_cash_flow_from_financing_activities = None
8484 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+ ),
9088 )
9189
9290
@@ -97,7 +95,7 @@ class ComprehensiveIncomeLoss:
9795 label : Optional [str ] = None
9896 order : Optional [int ] = None
9997 unit : Optional [str ] = None
100- value : Optional [int ] = None
98+ value : Optional [float ] = None
10199 xpath : Optional [str ] = None
102100
103101 @staticmethod
@@ -112,7 +110,7 @@ class ComprehensiveIncomeLossAttributableToParent:
112110 label : Optional [str ] = None
113111 order : Optional [int ] = None
114112 unit : Optional [str ] = None
115- value : Optional [int ] = None
113+ value : Optional [float ] = None
116114 xpath : Optional [str ] = None
117115
118116 @staticmethod
@@ -127,7 +125,7 @@ class OtherComprehensiveIncomeLoss:
127125 label : Optional [str ] = None
128126 order : Optional [int ] = None
129127 unit : Optional [str ] = None
130- value : Optional [int ] = None
128+ value : Optional [float ] = None
131129 xpath : Optional [str ] = None
132130
133131 @staticmethod
@@ -149,21 +147,17 @@ def from_dict(d):
149147 return ComprehensiveIncome (
150148 comprehensive_income_loss = None
151149 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" ]),
153151 comprehensive_income_loss_attributable_to_parent = None
154152 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+ ),
160156 other_comprehensive_income_loss = None
161157 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+ ),
167161 )
168162
169163
@@ -174,7 +168,7 @@ class BasicEarningsPerShare:
174168 label : Optional [str ] = None
175169 order : Optional [int ] = None
176170 unit : Optional [str ] = None
177- value : Optional [int ] = None
171+ value : Optional [float ] = None
178172 xpath : Optional [str ] = None
179173
180174 @staticmethod
@@ -189,7 +183,7 @@ class CostOfRevenue:
189183 label : Optional [str ] = None
190184 order : Optional [int ] = None
191185 unit : Optional [str ] = None
192- value : Optional [int ] = None
186+ value : Optional [float ] = None
193187 xpath : Optional [str ] = None
194188
195189 @staticmethod
@@ -204,7 +198,7 @@ class GrossProfit:
204198 label : Optional [str ] = None
205199 order : Optional [int ] = None
206200 unit : Optional [str ] = None
207- value : Optional [int ] = None
201+ value : Optional [float ] = None
208202 xpath : Optional [str ] = None
209203
210204 @staticmethod
@@ -219,7 +213,7 @@ class OperatingExpenses:
219213 label : Optional [str ] = None
220214 order : Optional [int ] = None
221215 unit : Optional [str ] = None
222- value : Optional [int ] = None
216+ value : Optional [float ] = None
223217 xpath : Optional [str ] = None
224218
225219 @staticmethod
@@ -234,7 +228,7 @@ class Revenues:
234228 label : Optional [str ] = None
235229 order : Optional [int ] = None
236230 unit : Optional [str ] = None
237- value : Optional [int ] = None
231+ value : Optional [float ] = None
238232 xpath : Optional [str ] = None
239233
240234 @staticmethod
@@ -256,19 +250,17 @@ def from_dict(d):
256250 return IncomeStatement (
257251 basic_earnings_per_share = None
258252 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" ]),
260254 cost_of_revenue = None
261255 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" ]),
263257 gross_profit = None
264258 if "gross_profit" not in d
265- else [ GrossProfit .from_dict (d ["gross_profit" ])] ,
259+ else GrossProfit .from_dict (d ["gross_profit" ]),
266260 operating_expenses = None
267261 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" ]),
272264 )
273265
274266
@@ -288,13 +280,13 @@ def from_dict(d):
288280 else {k : DataPoint .from_dict (v ) for (k , v ) in d ["balance_sheet" ].items ()},
289281 cash_flow_statement = None
290282 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" ]),
292284 comprehensive_income = None
293285 if "comprehensive_income" not in d
294- else [ ComprehensiveIncome .from_dict (d ["comprehensive_income" ])] ,
286+ else ComprehensiveIncome .from_dict (d ["comprehensive_income" ]),
295287 income_statement = None
296288 if "income_statement" not in d
297- else [ IncomeStatement .from_dict (d ["income_statement" ])] ,
289+ else IncomeStatement .from_dict (d ["income_statement" ]),
298290 )
299291
300292
@@ -321,7 +313,7 @@ def from_dict(d):
321313 filing_date = d .get ("filing_date" , None ),
322314 financials = None
323315 if "financials" not in d
324- else [ Financials .from_dict (d ["financials" ])] ,
316+ else Financials .from_dict (d ["financials" ]),
325317 fiscal_period = d .get ("fiscal_period" , None ),
326318 fiscal_year = d .get ("fiscal_year" , None ),
327319 source_filing_file_url = d .get ("source_filing_file_url" , None ),
0 commit comments