Skip to content

Commit f381100

Browse files
committed
Also update docstring of plugins.load_plugin_on_server
1 parent 9b11956 commit f381100

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/ansys/dpf/core/plugins.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
2828
"""
2929

30+
from __future__ import annotations
31+
3032
import os.path
3133
from pathlib import Path
3234

@@ -39,13 +41,18 @@
3941
from ansys.dpf.core import server as server_module
4042

4143

42-
def load_plugin_on_server(plugin, server=None, symbol="load_operators", generate_operators=False):
44+
def load_plugin_on_server(
45+
plugin: str | Path,
46+
server: dpf.AnyServerType = None,
47+
symbol: str = "load_operators",
48+
generate_operators: bool = False,
49+
):
4350
"""Load a DPF Python plugin on the global or given DPF server.
4451
4552
Parameters
4653
----------
4754
plugin:
48-
DPF Python plugin to load.
55+
Path to the DPF Python plugin to load.
4956
server:
5057
DPF server to load the plugin onto.
5158
symbol:

0 commit comments

Comments
 (0)