Skip to content

Commit 4d30713

Browse files
authored
doc(docstring): fix docstring example of LicenseContextManager (#2679)
1 parent 3ef3217 commit 4d30713

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ansys/dpf/core/server_context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class LicenseContextManager:
118118
Examples
119119
--------
120120
Using a context manager
121+
121122
>>> from ansys.dpf import core as dpf
122123
>>> dpf.set_default_server_context(dpf.AvailableServerContexts.premium)
123124
>>> field = dpf.Field()
@@ -129,13 +130,15 @@ class LicenseContextManager:
129130
... out = op.outputs.field()
130131
131132
Using an instance
133+
132134
>>> lic = dpf.LicenseContextManager()
133135
>>> op.inputs.field(field)
134136
>>> op.inputs.threshold(0.0)
135137
>>> out = op.outputs.field()
136138
>>> lic = None
137139
138140
Using a context manager and choosing license options
141+
139142
>>> op.inputs.field(field)
140143
>>> op.inputs.threshold(0.0)
141144
>>> out = op.outputs.field()
@@ -149,6 +152,7 @@ class LicenseContextManager:
149152
Notes
150153
-----
151154
Available from 6.1 server version.
155+
152156
"""
153157

154158
def __init__(

0 commit comments

Comments
 (0)