Skip to content

Commit 47e3a69

Browse files
committed
[Fix] wrong argument name
1 parent 3589200 commit 47e3a69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mpython/core/base_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ def from_any(cls, other, **kwargs):
139139
raise TypeError(f"Cannot convert {type(other)} into a matlab object.")
140140

141141
@classmethod
142-
def _from_runtime(cls, obj, runtime):
143-
return cls.from_any(obj, _runtime=runtime)
142+
def _from_runtime(cls, obj, _runtime):
143+
return cls.from_any(obj, _runtime=_runtime)
144144

145145
@classmethod
146146
def _to_runtime(cls, obj):

mpython/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _process_argin(cls, *args, **kwargs):
5454

5555
@classmethod
5656
def _process_argout(cls, res):
57-
return MatlabType._from_runtime(res, _runtime=cls)
57+
return MatlabType._from_runtime(res, cls)
5858

5959
@classmethod
6060
def _init_instance(cls):

0 commit comments

Comments
 (0)