Skip to content

Commit

Permalink
add typing.Optional to pypim Instance return
Browse files Browse the repository at this point in the history
  • Loading branch information
klmcadams committed Jan 23, 2025
1 parent 1b9bb01 commit 5b0fe30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ansys/mechanical/core/mechanical.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
except ImportError:
HAS_ANSYS_PIM = False

from typing import Optional

import ansys.tools.path as atp
import grpc

Expand Down Expand Up @@ -1941,7 +1943,9 @@ def launch_grpc(
return port


def launch_remote_mechanical(version=None): # pragma: no cover
def launch_remote_mechanical(
version=None,
) -> (grpc.Channel, Optional["Instance"]): # pragma: no cover
"""Start Mechanical remotely using the Product Instance Management (PIM) API.
When calling this method, you must ensure that you are in an environment
Expand Down

0 comments on commit 5b0fe30

Please sign in to comment.