fn implement_py_formatting(
    ty: &Type,
    ctx: &Ctx,
    option: &OptionalKeywordAttribute<str, StringFormatter>,
) -> (ImplItemFn, MethodAndSlotDef)fn implement_py_formatting(
    ty: &Type,
    ctx: &Ctx,
    option: &OptionalKeywordAttribute<str, StringFormatter>,
) -> (ImplItemFn, MethodAndSlotDef)