Skip to content

Make _bleio.Attribute be more like an enum, not just int values #6355

Open
@dhalbert

Description

@dhalbert

The the _bleio.Attribute values are plain ints, but https://github.com/adafruit/Adafruit_Blinka_bleio/ uses CPython Enum. This causes problems when trying to add type annotations: adafruit/Adafruit_Blinka_bleio#44.

The Attribute code was written a while ago. I think we could switch it to use py/enum.h, and fix this incompatibility.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions