Type fix
This commit is contained in:
parent
1fb52d1479
commit
47b7746787
@ -154,7 +154,7 @@ class AppliedType3(Type3):
|
|||||||
"""
|
"""
|
||||||
__slots__ = ('base', 'args', )
|
__slots__ = ('base', 'args', )
|
||||||
|
|
||||||
base: PrimitiveType3
|
base: Union[PrimitiveType3, MonadType3]
|
||||||
"""
|
"""
|
||||||
The base type
|
The base type
|
||||||
"""
|
"""
|
||||||
@ -164,7 +164,7 @@ class AppliedType3(Type3):
|
|||||||
The applied types (or placeholders there for)
|
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]
|
args = [*args]
|
||||||
assert args, 'Must at least one argument'
|
assert args, 'Must at least one argument'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user