https://dagster.io/ logo
Title
m

Mikhail Knyazev

10/20/2022, 10:30 AM
Hey Dagster team! Is there a way to use complex types list
dict[str, dict[frozenset[tuple[float, float]], str]]
in inputs and outputs? I’m getting
TypeError: isinstance() argument 2 cannot be a parameterized generic
error while doing so. Full code in the thread:
assert check_dagster_type(
        PythonObjectDagsterType(dict[str, dict[frozenset[tuple[float, float]], str]]),
        {'label_id': {frozenset({(1.0, 1.0), (2.0, 2.0)}): 'text'}},
    ).success

# TypeError: isinstance() argument 2 cannot be a parameterized generic
It seems I can use more coarse types like
dict[str, dict[frozenset, str]]
c

chris

10/20/2022, 5:44 PM
yikes. I was able to reproduce in a variety of cases - making an issue now
👍 1