pymapdl icon indicating copy to clipboard operation
pymapdl copied to clipboard

Add Type Hints to all classes, methods and functions.

Open jgd10 opened this issue 4 years ago • 2 comments

This is a pretty big task, but I think it would be worthwhile to have type hints wherever it is sensible. We already have them in a few places. E.g. in mesh_commands.py

class _MapdlMeshingCommands:

    def n(self, node="", x="", y="", z="", thxy="", thyz="", thzx="",
          **kwargs) -> int:

But ideally type hints should be present on every callable. I think it's a fairly uncontroversial addition, and I am happy to go through and start making these changes, although I don't suspect it'll be done particularly soon!

jgd10 avatar May 12 '21 13:05 jgd10