Skip to content

Commit 0286681

Browse files
committed
REV: undoing changes
1 parent ec9a552 commit 0286681

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ def for_flight(cls) -> 'DiscretizeConfig':
5454

5555

5656
class InfinityEncoder(RocketPyEncoder):
57-
def default(self, o):
58-
obj = o
57+
def __init__(self, *args, **kwargs):
58+
super().__init__(*args, **kwargs)
59+
60+
def default(self, obj):
5961
if (
6062
isinstance(obj, Function)
6163
and not callable(obj.source)

0 commit comments

Comments
 (0)