Skip to content

Problem with enum classes #142

@jojo141185

Description

@jojo141185

In my pyscript automation I try to use enum classes like this:

from enum import Enum

class Mode(Enum):
    SHUT = 1
    BLOCKING = 2
    FIXED_OPEN = 3
    FULLY_OPEN = 4

Problem

I get the following error message :
2021-01-11 23:15:46 ERROR (MainThread) [...]
FULLY_OPEN = 4
^
AttributeError: 'dict' object has no attribute '_member_names'

Question

Can you please check if it is a bug?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions