We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6587b56 commit f69f321Copy full SHA for f69f321
src/Actions.py
@@ -1,7 +1,8 @@
1
class Actions:
2
- def __init__(self, actions = []):
+ def __init__(self, actions = None):
3
+ if actions is None:
4
+ actions = []
5
self.actions = actions
-
6
@staticmethod
7
def to_string():
8
result_s = ""
src/Conditions.py
@@ -1,5 +1,7 @@
class Conditions:
- def __init__(self, conditions = [] ):
+ def __init__(self, conditions = None ):
+ if conditions is None:
+ conditions = []
self.conditions = conditions
src/State.py
class State:
- def __init__(self, name: str, events = {}):
+ def __init__(self, name: str, events = None):
+ if events is None:
+ events = {}
self.name = name
self.events = events
0 commit comments