diff --git a/src/ansys/dpf/core/data_sources.py b/src/ansys/dpf/core/data_sources.py index ab481e0b7d..c93875b7bc 100644 --- a/src/ansys/dpf/core/data_sources.py +++ b/src/ansys/dpf/core/data_sources.py @@ -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. @@ -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(