From 2d4b7c36f0d5421b654eacbfa909625914206269 Mon Sep 17 00:00:00 2001 From: Elizio Martins Cezarino <78484991+ElizioMartins@users.noreply.github.com> Date: Tue, 19 May 2026 21:58:15 -0300 Subject: [PATCH] fix: correct entity field syntax in README code example (#10) Fields Id and String require parentheses when used as class attributes. Without `Id()` and `String()`, instantiating the entity with keyword arguments raises a TypeError at runtime. Fixes #10 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fce0fc..0ae36b7 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ from objectbox import Entity, Id, Store, String @Entity() class Person: - id = Id - name = String + id = Id() + name = String() # The ObjectBox Store represents a database; keep it around... store = Store()