Skip to content

Commit 19ae597

Browse files
authored
Add class signature type-hinting (#1119)
* Add class signature type-hinting * Remove E501 and fix parameter name
1 parent 4e8b2a0 commit 19ae597

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
"sphinx_gallery.gen_gallery",
8787
]
8888

89+
typehints_defaults = "comma"
90+
typehints_use_signature = True
91+
simplify_optional_unions = False
92+
8993
# Intersphinx mapping
9094
intersphinx_mapping = {
9195
"pyvista": ("https://docs.pyvista.org/", None),

src/ansys/dpf/core/any.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Any:
1919
2020
Parameters
2121
----------
22-
any : ctypes.c_void_p, ansys.grpc.dpf.any_pb2.Any message, optional # noqa: E501
22+
any_dpf : ctypes.c_void_p, ansys.grpc.dpf.any_pb2.Any message, optional
2323
server : DPFServer, optional
2424
Server with channel connected to the remote or local instance.
2525
The default is ``None``, in which case an attempt is made to use the

0 commit comments

Comments
 (0)