mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-10 00:34:29 +00:00
tuple of types instead of union
This commit is contained in:
parent
2b56da6808
commit
1ffdc7cd20
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ class Interface(ABC, Generic[T]):
|
||||||
"""Input types for all enabled interfaces"""
|
"""Input types for all enabled interfaces"""
|
||||||
in_types = []
|
in_types = []
|
||||||
for iface in cls.interfaces():
|
for iface in cls.interfaces():
|
||||||
if isinstance(iface.input_types, Union[tuple, list]):
|
if isinstance(iface.input_types, (tuple, list)):
|
||||||
in_types.extend(iface.input_types)
|
in_types.extend(iface.input_types)
|
||||||
else: # pragma: no cover
|
else: # pragma: no cover
|
||||||
in_types.append(iface.input_types)
|
in_types.append(iface.input_types)
|
||||||
|
|
Loading…
Reference in a new issue