Description of the feature
See this #3155 as an example. When we need to support a new class as an any, we need to update different maps in different locations. For example:
- core:
|
def _type_to_new_from_get_as_method(self, obj): |
- gate for legacy gRPC:
|
def _type_to_message_type(): |
This should alternatively be refactored to have the right methods as static objects in each class, that would be a requirement to be able to cast them from/as anys
Steps for implementing the feature
No response
Useful links and references
No response
Description of the feature
See this #3155 as an example. When we need to support a new class as an any, we need to update different maps in different locations. For example:
pydpf-core/src/ansys/dpf/core/any.py
Line 112 in 40f1a1d
pydpf-core/src/ansys/dpf/gate/any_grpcapi.py
Line 32 in 40f1a1d
This should alternatively be refactored to have the right methods as static objects in each class, that would be a requirement to be able to cast them from/as anys
Steps for implementing the feature
No response
Useful links and references
No response