slint-ui/slint · error

implemented type conversion

Error message

implemented type conversion {:#?}

What it means

Error "implemented type conversion {:#?}" thrown in slint-ui/slint.

Solutions

  1. Internal compiler bug: the Python generator hit an unimplemented type conversion; report it.
  2. Simplify the property/binding type that triggers the conversion.

When it happens

Trigger: Thrown at internal/compiler/generator/python.rs:710 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of slint-ui/slint@3fd8f2ec03 (2026-08-19). Data as JSON: /api/errors/fa42221dfc8214ae. Report an issue: GitHub.

Appendix: source

Thrown at internal/compiler/generator/python.rs:710

        },
        Type::Enumeration(enumeration) => {
            if enumeration.node.is_some() {
                ident(&enumeration.name)
            } else {
                SmolStr::new_static("None")
            }
        }
        Type::Callback(function) | Type::Function(function) => {
            format_smolstr!(
                "typing.Callable[[{}], {}]",
                function.args.iter().map(python_type_name).join(", "),
                python_type_name(&function.return_type)
            )
        }
        Type::Keys => SmolStr::new_static("slint.Keys"),
        Type::DataTransfer => SmolStr::new_static("slint.DataTransfer"),
        Type::MouseCursor => SmolStr::new_static("None"),
        ty => unimplemented!("implemented type conversion {:#?}", ty),
    }
}

View on GitHub (pinned to 3fd8f2ec03)