Type fix
This commit is contained in:
parent
959b643542
commit
7ec273a732
@ -154,7 +154,7 @@ class AppliedType3(Type3):
|
||||
"""
|
||||
__slots__ = ('base', 'args', )
|
||||
|
||||
base: PrimitiveType3
|
||||
base: Union[PrimitiveType3, MonadType3]
|
||||
"""
|
||||
The base type
|
||||
"""
|
||||
@ -164,7 +164,7 @@ class AppliedType3(Type3):
|
||||
The applied types (or placeholders there for)
|
||||
"""
|
||||
|
||||
def __init__(self, base: PrimitiveType3, args: Iterable[Type3OrPlaceholder]) -> None:
|
||||
def __init__(self, base: Union[PrimitiveType3, MonadType3], args: Iterable[Type3OrPlaceholder]) -> None:
|
||||
args = [*args]
|
||||
assert args, 'Must at least one argument'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user