Skip to content

Commit

Permalink
add typehints to ExtAPI, Tree, Model, and Graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
klmcadams committed Oct 22, 2024
1 parent 76c3184 commit af2f40f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansys/mechanical/core/embedding/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ def DataModel(self):
return GetterWrapper(self._app, lambda app: app.DataModel)

@property
def ExtAPI(self):
def ExtAPI(self) -> Ansys.ACT.Interfaces.Mechanical.IMechanicalExtAPI:
"""Return the ExtAPI object."""
return GetterWrapper(self._app, lambda app: app.ExtAPI)

@property
def Tree(self):
def Tree(self) -> Ansys.ACT.Automation.Mechanical.Tree:
"""Return the Tree object."""
return GetterWrapper(self._app, lambda app: app.DataModel.Tree)

Expand All @@ -313,7 +313,7 @@ def Model(self) -> Ansys.ACT.Automation.Mechanical.Model:
return GetterWrapper(self._app, lambda app: app.DataModel.Project.Model)

@property
def Graphics(self):
def Graphics(self) -> Ansys.ACT.Common.Graphics.MechanicalGraphicsWrapper:
"""Return the Graphics object."""
return GetterWrapper(self._app, lambda app: app.ExtAPI.Graphics)

Expand Down

0 comments on commit af2f40f

Please sign in to comment.