From 60cd849d3c3d78febbd91c52c87c8ccc8e807b87 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Fri, 30 Jan 2026 09:33:15 -0800 Subject: [PATCH 1/3] bug(nimbus-fml): Specify dict subtypes for JsonObject in uniffi.toml --- components/support/nimbus-fml/uniffi.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/support/nimbus-fml/uniffi.toml b/components/support/nimbus-fml/uniffi.toml index 7fbb9a4f7f..669b104426 100644 --- a/components/support/nimbus-fml/uniffi.toml +++ b/components/support/nimbus-fml/uniffi.toml @@ -12,4 +12,4 @@ imports = ["json"] into_custom = "json.loads({})" from_custom = "json.dumps({})" -type_name = "dict" +type_name = "dict[str, typing.Any]" From f0744e49e092f905ccc07a54e2fb69bc84327939 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Fri, 30 Jan 2026 10:11:22 -0800 Subject: [PATCH 2/3] use typing.Dict for subscripting --- components/support/nimbus-fml/uniffi.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/support/nimbus-fml/uniffi.toml b/components/support/nimbus-fml/uniffi.toml index 669b104426..04a1a6f833 100644 --- a/components/support/nimbus-fml/uniffi.toml +++ b/components/support/nimbus-fml/uniffi.toml @@ -12,4 +12,4 @@ imports = ["json"] into_custom = "json.loads({})" from_custom = "json.dumps({})" -type_name = "dict[str, typing.Any]" +type_name = "typing.Dict[str, typing.Any]" From f47192109b013086b210b04e2831f4e01191927d Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Fri, 30 Jan 2026 10:32:52 -0800 Subject: [PATCH 3/3] Apply suggestion from @bendk --- components/support/nimbus-fml/uniffi.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/support/nimbus-fml/uniffi.toml b/components/support/nimbus-fml/uniffi.toml index 04a1a6f833..2054510e56 100644 --- a/components/support/nimbus-fml/uniffi.toml +++ b/components/support/nimbus-fml/uniffi.toml @@ -9,7 +9,7 @@ # cdylib_name = "cirrus" [bindings.python.custom_types.JsonObject] -imports = ["json"] +imports = ["json", "typing"] into_custom = "json.loads({})" from_custom = "json.dumps({})" type_name = "typing.Dict[str, typing.Any]"