Skip to content

Conversation

@ivaylo-matov
Copy link
Contributor

This PR is for review only and is related to DYN-9965.

It adds a small compatibility shim to the PythonNet3 evaluator to keep some legacy instance-style calls on ConnectionNode working.

Some Advance Steel APIs expose static methods (SubNodesOfSize and ExistingConnections) . The older CPython3 engine allowed these methods to be called as if they were instance methods. PythonNet3 is stricter and no longer allows this, which causes some existing graphs to fail.

The shim patches ConnectionNode instances by attaching small wrapper functions that forward instance-style calls to the correct static methods. This restores the old behavior without changing the underlying API or affecting valid static calls.

There may be other static methods affected by the same change. However, applying a global fix would be risky, as it could wrap unintended members or change overload resolution in unpredictable ways. If more cases are found, the safest approach would be to add them to a small, explicit patch list based on real failures.

@zeusongit

DYN-9965-patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant