ansys / ansys/pymechanical

Add typehint for DataModel in app.py

Open
#1,006 0 comments 0 reactions 1 assignee Claimed by @klmcadams View on GitHub
Dominant language
Python
Stars
83
Forks
37
Avg merge
1d 3m
Merged PRs (30d)
26

Description

Add typehint for DataModel in app.py once https://github.com/ansys/pymechanical-stubs/pull/93 is merged and a patch release of ansys-mechanical-stubs has been completed

Update this line to def DataModel(self) -> Ansys.Mechanical.DataModel.Interfaces.IDataModelObject (or DataModelObject since it points to IDataModelObject)
https://github.com/ansys/pymechanical/blob/033053b4e02c90d605799fbbcccd062cf1637d6e/src/ansys/mechanical/core/embedding/app.py#L379

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.