Mikhail Knyazev
10/20/2022, 10:30 AMdict[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]]
chris
10/20/2022, 5:44 PM