Move matchers to type package

This commit is contained in:
Bartłomiej Pluta
2019-07-09 22:53:10 +02:00
parent fe19ecc090
commit 1449eee363
32 changed files with 164 additions and 138 deletions

View File

@@ -1,7 +1,7 @@
from smnp.library.model import Function
from smnp.library.signature import signature, ofType
from smnp.library.signature import signature
from smnp.type.model import Type
from smnp.type.signature.matcher.type import ofType
_signature = signature(ofType(Type.NOTE), ofType(Type.INTEGER))
def _function(env, note, duration):