File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/ansys/dpf/core/operators Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ class Inputs{{capital_class_name}}(_Inputs):
218218 return self.{ {name} }
219219 { {/has_aliases} }
220220 { {/input_pins} }
221+ raise AttributeError(f"'{ self.__class__.__name__} ' object has no attribute '{ name} '")
221222
222223
223224class Outputs{ {capital_class_name} }(_Outputs):
@@ -272,3 +273,12 @@ class Outputs{{capital_class_name}}(_Outputs):
272273 """ # noqa: E501
273274 return self._{ {name} }
274275 { {/multiple_types} }{ {/output_pins} }
276+
277+ def __getattr__(self, name):
278+ { {#output_pins} }
279+ { {#has_aliases} }
280+ if name in { {{aliases} }}:
281+ return self.{ {name} }
282+ { {/has_aliases} }
283+ { {/output_pins} }
284+ raise AttributeError(f"'{ self.__class__.__name__} ' object has no attribute '{ name} '")
You can’t perform that action at this time.
0 commit comments