Skip to content

Commit 496a791

Browse files
cursoragentipetrov
andcommitted
Refactor SubNodesOfSize and ExistingConnections to accept arbitrary args
Co-authored-by: ipetrov <[email protected]>
1 parent c94b8b4 commit 496a791

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DSPythonNet3/DSPythonNet3Evaluator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,11 @@ def __dspynet3__patch_connnode_instance(__obj):
825825
return
826826
827827
# Only patch if missing or still the raw reflected method.
828-
def __subnodes(__n, __obj=__obj):
829-
return __ConnectionNode.SubNodesOfSize(__obj, __n)
828+
def __subnodes(__n, *args, __obj=__obj, **kwargs):
829+
return __ConnectionNode.SubNodesOfSize(__obj, __n, *args, **kwargs)
830830
831-
def __existing(__obj=__obj):
832-
return __ConnectionNode.ExistingConnections(__obj)
831+
def __existing(*args, __obj=__obj, **kwargs):
832+
return __ConnectionNode.ExistingConnections(__obj, *args, **kwargs)
833833
834834
try:
835835
setattr(__obj, 'SubNodesOfSize', __subnodes)

0 commit comments

Comments
 (0)