Skip to content

Commit 8c05453

Browse files
luisaFelixSallesBClappe
authored andcommitted
type hint?
1 parent c0f63fb commit 8c05453

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
@@ -63,11 +63,11 @@ class DataSources:
6363
6464
Parameters
6565
----------
66-
result_path :
66+
result_path : str or os.PathLike object, optional
6767
Path of the result. The default is ``None``.
68-
data_sources :
68+
data_sources : ansys.grpc.dpf.data_sources_pb2.DataSources
6969
gRPC data sources message. The default is ``None``.
70-
server :
70+
server
7171
Server with the channel connected to the remote or local instance. The
7272
default is ``None``, in which case an attempt is made to use the global
7373
server.
@@ -85,12 +85,7 @@ class DataSources:
8585
8686
"""
8787

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

0 commit comments

Comments
 (0)