@@ -150,13 +150,13 @@ def _lunchable_data_mapping(
150150 Mapping of Lunchable Objects to their Data Collecting Info
151151 """
152152 return {
153- PlaidAccountObject : ("plaid_accounts" , self .lunch .get_plaid_accounts ),
154- TransactionObject : ("transactions" , self .lunch .get_transactions ),
155- CategoriesObject : ("categories" , self .lunch .get_categories ),
156- AssetsObject : ("assets" , self .lunch .get_assets ),
157- TagsObject : ("tags" , self .lunch .get_tags ),
153+ PlaidAccountObject : ("plaid_accounts" , self .lunch .get_plaid_accounts ), # type: ignore[dict-item]
154+ TransactionObject : ("transactions" , self .lunch .get_transactions ), # type: ignore[dict-item]
155+ CategoriesObject : ("categories" , self .lunch .get_categories ), # type: ignore[dict-item]
156+ AssetsObject : ("assets" , self .lunch .get_assets ), # type: ignore[dict-item]
157+ TagsObject : ("tags" , self .lunch .get_tags ), # type: ignore[dict-item]
158158 UserObject : ("user" , self .lunch .get_user ),
159- CryptoObject : ("crypto" , self .lunch .get_crypto ),
159+ CryptoObject : ("crypto" , self .lunch .get_crypto ), # type: ignore[dict-item]
160160 }
161161
162162 def __init__ (self , access_token : str | None = None ):
@@ -184,7 +184,7 @@ def lunchable_models(self) -> List[Type[LunchableModel]]:
184184 """
185185
186186 @overload
187- def refresh (self , model : Type [UserObject ], ** kwargs : Any ) -> UserObject :
187+ def refresh (self , model : Type [UserObject ], ** kwargs : Any ) -> UserObject : # type: ignore[overload-overlap]
188188 ...
189189
190190 @overload
@@ -193,9 +193,7 @@ def refresh(
193193 ) -> Dict [int , LunchableModelType ]:
194194 ...
195195
196- def refresh (
197- self , model : Type [LunchableModel ], ** kwargs : Any
198- ) -> LunchableModel | Dict [int , LunchableModel ]:
196+ def refresh (self , model : Type [LunchableModel ], ** kwargs : Any ) -> Any :
199197 """
200198 Refresh a Lunchable Model
201199
@@ -235,7 +233,7 @@ def refresh(
235233 if isinstance (fetched_data , UserObject ):
236234 data_mapping = fetched_data
237235 else :
238- data_mapping = {item .id : item for item in fetched_data } # type: ignore[assignment]
236+ data_mapping = {item .id : item for item in fetched_data } # type: ignore[assignment, union-attr ]
239237 setattr (self .data , attr_name , data_mapping )
240238 return data_mapping
241239
0 commit comments