PyType (@NotNull TypeEvalContext context, @NotNull TypeEvalContext.Key key) { final PyType keyType = context.getType(getKey()); final PyExpression value = getValue(); PyType valueType = null; if (value != null) { valueType = context.getType(value); } return PyTupleType.create(this, Arrays.asList(keyType, valueType)); }