@@ -83,7 +83,7 @@ impl DataTransformationSet {
8383 name : & str ,
8484 config : & Bound < ' _ , PyAny > , // some variant of TransformationTechnologyConfig
8585 ) -> PyResult < TransformationTechnology > {
86- let config = transformation_technology_config_from_pyobject ( config) ?;
86+ let config = transformation_technology_config_from_pyany ( config) ?;
8787 match self . 0 . create_transformation_technology ( name, & config) {
8888 Ok ( value) => Ok ( TransformationTechnology ( value) ) ,
8989 Err ( e) => Err ( AutosarAbstractionError :: new_err ( e. to_string ( ) ) ) ,
@@ -230,15 +230,15 @@ impl TransformationTechnology {
230230 #[ pyo3( signature = ( config, /) ) ]
231231 #[ pyo3( text_signature = "(self, config: TransformationTechnologyConfig, /)" ) ]
232232 fn set_config ( & self , config : & Bound < ' _ , PyAny > ) -> PyResult < ( ) > {
233- let config = transformation_technology_config_from_pyobject ( config) ?;
233+ let config = transformation_technology_config_from_pyany ( config) ?;
234234 self . 0 . set_config ( & config) . map_err ( abstraction_err_to_pyerr)
235235 }
236236
237237 /// Get the configuration of the `TransformationTechnology`
238- fn config ( & self , py : Python ) -> Option < PyObject > {
238+ fn config ( & self , py : Python ) -> Option < Py < PyAny > > {
239239 self . 0
240240 . config ( )
241- . and_then ( |config| transformation_technology_config_to_pyobject ( py, & config) . ok ( ) )
241+ . and_then ( |config| transformation_technology_config_to_pyany ( py, & config) . ok ( ) )
242242 }
243243}
244244
@@ -248,8 +248,8 @@ iterator_wrapper!(TransformationTechnologyIterator, TransformationTechnology);
248248
249249//##################################################################
250250
251- // when we receive a generic PyObject , we need to determine the actual type of the config and wrap it appropriately
252- fn transformation_technology_config_from_pyobject (
251+ // when we receive a generic Py<PyAny> , we need to determine the actual type of the config and wrap it appropriately
252+ fn transformation_technology_config_from_pyany (
253253 config : & Bound < ' _ , PyAny > ,
254254) -> PyResult < autosar_data_abstraction:: communication:: TransformationTechnologyConfig > {
255255 if let Ok ( config) = config. extract :: < GenericTransformationTechnologyConfig > ( ) {
@@ -283,11 +283,11 @@ fn transformation_technology_config_from_pyobject(
283283 }
284284}
285285
286- // instead of representing TransformationTechnologyConfig with a matching enum in python, we can simply return generic PyObjects
287- fn transformation_technology_config_to_pyobject (
286+ // instead of representing TransformationTechnologyConfig with a matching enum in python, we can simply return generic Py<PyAny>s
287+ fn transformation_technology_config_to_pyany (
288288 py : Python ,
289289 config : & autosar_data_abstraction:: communication:: TransformationTechnologyConfig ,
290- ) -> PyResult < PyObject > {
290+ ) -> PyResult < Py < PyAny > > {
291291 match config {
292292 autosar_data_abstraction:: communication:: TransformationTechnologyConfig :: Generic (
293293 config,
0 commit comments