E-TE0008 — Could not infer the key/value types of an empty dict

Error Type

Type Error

Phase

type checking the model

Python exception

jijmodeling.TypeError

Message

Could not infer the key/value types of an empty dict.

Possible fix: annotate the expected type or use a non-empty dict.

Cause

An empty dict literal appears in a position where its key and value types cannot be deduced from context.

Fix

Use a non-empty dict so the key and value types can be inferred from its entries, or restructure the expression so the surrounding context fixes the key and value types.