Skip to content

Commit 5fd4060

Browse files
type hint?
1 parent af56d02 commit 5fd4060

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/ansys/dpf/core/data_sources.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ class DataSources:
6262
6363
Parameters
6464
----------
65-
result_path :
65+
result_path : str or os.PathLike object, optional
6666
Path of the result. The default is ``None``.
67-
data_sources :
67+
data_sources : ansys.grpc.dpf.data_sources_pb2.DataSources
6868
gRPC data sources message. The default is ``None``.
69-
server :
69+
server
7070
Server with the channel connected to the remote or local instance. The
7171
default is ``None``, in which case an attempt is made to use the global
7272
server.
@@ -84,12 +84,7 @@ class DataSources:
8484
8585
"""
8686

87-
def __init__(
88-
self,
89-
result_path: Optional[str, os.PathLike] = None,
90-
data_sources: Optional[dpf.DataSources, int, DataSourcesPB2.DataSources] = None,
91-
server: Optional[type[server_types.BaseServer]] = None,
92-
):
87+
def __init__(self, result_path=None, data_sources=None, server: Optional[type[server_types.BaseServer]] = None):
9388
"""Initialize a connection with the server."""
9489
# step 1: get server
9590
self._server = server_module.get_or_create_server(

0 commit comments

Comments
 (0)