Python: Correct Importing example

Without this fix, we get a TypeError:

TypeError: Must be mapping, not set
This commit is contained in:
Daniel Kahn Gillmor 2024-06-19 09:36:38 -04:00
parent 8580f9e961
commit 7f01cc6786

View File

@ -57,7 +57,7 @@ from gi.repository import Secret
# ... and a here's sample line of code which uses the import
schema = Secret.Schema.new("org.mock.Schema",
Secret.SchemaFlags.NONE, { "name", Secret.SchemaAttributeType.STRING })
Secret.SchemaFlags.NONE, { "name": Secret.SchemaAttributeType.STRING })
```
## Vala: Compiling with libsecret