File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2626import warnings
2727import weakref
2828
29- from typing_extensions import deprecated
30-
3129from ansys .dpf import core
3230from ansys .dpf .core .mapping_types import map_types_to_python
3331from ansys .dpf .core .outputs import Output , _Outputs
@@ -218,7 +216,6 @@ def __str__(self):
218216 docstr += "{:<5}{:<4}{:<20}\n " .format (* line )
219217 return docstr
220218
221- @deprecated ("Use explicit output-to-input connections." )
222219 def connect (self , inpt ):
223220 """Connect any input (an entity or an operator output) to any input pin of this operator.
224221
@@ -234,6 +231,10 @@ def connect(self, inpt):
234231 Input of the operator.
235232
236233 """
234+ warnings .warn (
235+ message = "Use explicit output-to-input connections." , category = DeprecationWarning
236+ )
237+
237238 from pathlib import Path
238239
239240 corresponding_pins = []
You can’t perform that action at this time.
0 commit comments