Skip to content

types for enums #89

@hrbigelow

Description

@hrbigelow

Hi,

I wondered if you'd consider (or is it already available?) providing types for the enums so we can use type annotations, for example:

from typing import NewType

VkFormat = NewType('VkFormat', int)
VK_FORMAT_UNDEFINED = VkFormat(0)
VK_FORMAT_R4G4_UNORM_PACK8 = VkFormat(1)
...


def some_func(format: VkFormat, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions