Closed sbrugman closed 5 years ago
Tests all seem to be filing for me on this one
tests/test_type_inference.py:3: in
from tenzing.core.model.typesets import tenzing_complete_set
src/tenzing/init.py:1: in
from tenzing import core
src/tenzing/core/init.py:1: in
from tenzing.core import model
src/tenzing/core/model/init.py:1: in
import tenzing.core.model.relations
src/tenzing/core/model/relations.py:3: in
from tenzing.utils import test_utils
src/tenzing/utils/init.py:3: in
from tenzing.utils.images import image_utils
src/tenzing/utils/images/init.py:1: in
from tenzing.utils.images import image_utils
src/tenzing/utils/images/image_utils.py:9: in
def open_image(path: Path) -> Optional[Image]:
/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py:254: in inner
return func(*args, **kwds)
/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py:357: in getitem
arg = _type_check(parameters, "Optional[t] requires a single type.")
/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py:142: in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
E TypeError: Optional[t] requires a single type. Got <module 'PIL.Image' from '/usr/local/lib/python3.7/site-packages/PIL/Image.py'>.
Merged into relation_config
String -> Category does not work if there are multiple inferential relations... Similarly with Integer -> Boolean (there is also Integer -> Ordinal)