We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db63f1 commit 295e4dfCopy full SHA for 295e4df
src/ansys/dpf/core/any.py
@@ -113,6 +113,7 @@ def _type_to_new_from_get_as_method(self, obj):
113
from ansys.dpf.core import (
114
collection,
115
custom_type_field,
116
+ data_sources,
117
data_tree,
118
dpf_operator,
119
field,
@@ -205,6 +206,11 @@ def _type_to_new_from_get_as_method(self, obj):
205
206
self._api.any_new_from_operator,
207
self._api.any_get_as_operator,
208
)
209
+ elif issubclass(obj, data_sources.DataSources):
210
+ return (
211
+ self._api.any_new_from_data_sources,
212
+ self._api.any_get_as_data_sources,
213
+ )
214
elif issubclass(obj, Any):
215
return (
216
lambda x: x,
0 commit comments