File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def rocketpy_encoder(obj, config: DiscretizeConfig = DiscretizeConfig()):
4949 """
5050 Encode a RocketPy object using official RocketPy encoders.
5151
52- This function creates a shallow copy of the object, discretizes callable Function
52+ This function creates a copy of the object, discretizes callable Function
5353 attributes on the copy, and then uses RocketPy's official RocketPyEncoder for
5454 complete object serialization. The original object remains unchanged.
5555
@@ -61,7 +61,7 @@ def rocketpy_encoder(obj, config: DiscretizeConfig = DiscretizeConfig()):
6161 Dictionary of encoded attributes
6262 """
6363
64- # Create a shallow copy to avoid mutating the original object
64+ # Create a copy to avoid mutating the original object
6565 obj_copy = copy .deepcopy (obj )
6666
6767 for attr_name in dir (obj_copy ):
You can’t perform that action at this time.
0 commit comments