Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rachum-thu opened this issue Oct 29, 2023 · 0 comments

Comments

@Rachum-thu
Copy link

Rachum-thu commented Oct 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant