Create evaluators for optional arguments in function and method definitions
This commit is contained in:
@@ -25,4 +25,4 @@ def oneOf(*matchers):
|
||||
def check(value):
|
||||
return any(matcher.match(value) for matcher in matchers)
|
||||
|
||||
return Matcher(None, check, f"<{', '.join(m.string for m in matchers)}>")
|
||||
return Matcher(None, check, f"<{', '.join(m.string for m in matchers)}>")
|
||||
|
||||
Reference in New Issue
Block a user