mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
Holy overloaded technical terms, Batman. Here, 'property' and 'type' each mean two different things, which we can distinguish like this: - Property (capital P): dtlib.Property class, represents a property in a devicetree node - @property: a Python property - type(): an "@property" in the Property class, that returns a dtlib.Type value - Type (capital T): dtlib.Type class, represents the devicetree type of a Property value (dtlib.Type.BYTES, etc.) The type() @property in the Property class currently has an 'int' as its Python return type annotation. It really returns a dtlib.Type, which is an int (since it's an IntEnum), but that's not the same thing as an int. Change this to Type to be clear that not just any int can be returned by this @property. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>