Skip to content

Commit

Permalink
add_new_translate2 now returns a Translate object. #202
Browse files Browse the repository at this point in the history
  • Loading branch information
evereux committed Mar 17, 2024
1 parent f715177 commit 1a00faf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pycatia/part_interfaces/shape_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from pycatia.part_interfaces.thick_surface import ThickSurface
from pycatia.part_interfaces.thickness import Thickness
from pycatia.part_interfaces.thread import Thread
from pycatia.part_interfaces.translate import Translate
from pycatia.part_interfaces.trim import Trim
from pycatia.part_interfaces.tritangent_fillet import TritangentFillet
from pycatia.part_interfaces.user_pattern import UserPattern
Expand Down Expand Up @@ -2879,7 +2880,7 @@ def add_new_thread_with_ref(self, i_lateral_face: Reference, i_limit_face: Refer
"""
return Thread(self.shape_factory.AddNewThreadWithRef(i_lateral_face.com_object, i_limit_face.com_object))

def add_new_translate2(self, i_distance: float) -> AnyObject:
def add_new_translate2(self, i_distance: float) -> Translate:

"""
.. note::
Expand All @@ -2894,7 +2895,7 @@ def add_new_translate2(self, i_distance: float) -> AnyObject:
:rtype: AnyObject
"""

return AnyObject(self.shape_factory.AddNewTranslate2(i_distance))
return Translate(self.shape_factory.AddNewTranslate2(i_distance))

def add_new_trim(self, i_body_to_trim: Body) -> Trim:
"""
Expand Down

0 comments on commit 1a00faf

Please sign in to comment.