Add 'optional' matcher

This commit is contained in:
Bartłomiej Pluta
2019-07-13 23:08:17 +02:00
parent 44d234d36a
commit e70b5fa71a
2 changed files with 11 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ class Matcher:
self.type = objectType
self.matcher = matcher
self.string = string
self.optional = False
def match(self, value):
if self.type is not None and self.type != value.type: