Skip to content

Commit

Permalink
Add AnyServerType type for typehint. (#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi authored Jan 10, 2025
1 parent 1598c66 commit 52ed660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ansys/dpf/core/server_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1496,3 +1496,5 @@ def __del__(self):
# DpfServer: TypeAlias = LegacyGrpcServer
# Python <3.10
DpfServer = LegacyGrpcServer

AnyServerType = Union[LegacyGrpcServer, InProcessServer, GrpcServer]

0 comments on commit 52ed660

Please sign in to comment.