Skip to content

A Label Variation request for ProgrammingLanguage class in /leetcode_env/types.py #17

@runchu-tian

Description

@runchu-tian

Thank you so much for the code and your work of Reflexion is inspiring! But I notice there is probably one bug in your source code.

It is likely that you should change the label for CPP in ProgrammingLanguage class in /leetcode_env/types.py like this.

Original Code

class ProgrammingLanguage(Enum):
    """
    Enum for valid LeetCodeSubmission programming languages
    """

    CPP = "c++"
    JAVA = "java"
    PYTHON = "python"
    PYTHON3 = "python3"
    ...

Expected Code

class ProgrammingLanguage(Enum):
    """
    Enum for valid LeetCodeSubmission programming languages
    """

    CPP = "cpp"
    JAVA = "java"
    PYTHON = "python"
    PYTHON3 = "python3"
    ...

The original version will trigger internal server error (status code=500) without useful error hints.
By changing 'c++' to "cpp", the bug is gone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions