Enable allTypes() for argument definitions in functions

This commit is contained in:
Bartłomiej Pluta
2019-07-10 11:29:00 +02:00
parent 6fdc437a7f
commit f6d1f91708
3 changed files with 13 additions and 4 deletions

View File

@@ -4,7 +4,9 @@ from smnp.type.signature.matcher.model import Matcher
def allTypes():
allowedTypes = [t for t in Type if t != Type.VOID]
return ofTypes(*allowedTypes)
matcher = ofTypes(*allowedTypes)
matcher.string = "any"
return matcher
def ofTypes(*types):