Skip to content

Commit

Permalink
type hint?
Browse files Browse the repository at this point in the history
  • Loading branch information
luisaFelixSalles authored and BClappe committed Oct 15, 2024
1 parent c0f63fb commit 8c05453
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/ansys/dpf/core/data_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ class DataSources:
Parameters
----------
result_path :
result_path : str or os.PathLike object, optional
Path of the result. The default is ``None``.
data_sources :
data_sources : ansys.grpc.dpf.data_sources_pb2.DataSources
gRPC data sources message. The default is ``None``.
server :
server
Server with the channel connected to the remote or local instance. The
default is ``None``, in which case an attempt is made to use the global
server.
Expand All @@ -85,12 +85,7 @@ class DataSources:
"""

def __init__(
self,
result_path: Optional[str, os.PathLike] = None,
data_sources: Optional[dpf.DataSources, int, DataSourcesPB2.DataSources] = None,
server: Optional[type[server_types.BaseServer]] = None,
):
def __init__(self, result_path=None, data_sources=None, server: Optional[type[server_types.BaseServer]] = None):
"""Initialize a connection with the server."""
# step 1: get server
self._server = server_module.get_or_create_server(
Expand Down

0 comments on commit 8c05453

Please sign in to comment.