Enable creating custom methods

This commit is contained in:
Bartłomiej Pluta
2019-07-08 17:48:02 +02:00
parent d8cdafe293
commit 6d56706354
7 changed files with 61 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ class Value:
def __init__(self, objectType, value):
self.value = value
if type(value) == objectType.value[0]:
if objectType.value[0] is None or type(value) == objectType.value[0]:
self.type = objectType
elif type(value) == Value: