Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

None gets listed as if it was part of a enum #23

Open
GideonKoenig opened this issue Jul 1, 2022 · 0 comments
Open

None gets listed as if it was part of a enum #23

GideonKoenig opened this issue Jul 1, 2022 · 0 comments
Labels
bug 🪲 Something isn't working @enum Related to the @enum annotation missing annotation An annotation should have been generated automatically but wasn't

Comments

@GideonKoenig
Copy link
Contributor

GideonKoenig commented Jul 1, 2022

Describe the bug

In some parameter Type definitions, none gets listed as part of a enum. It doesn't actually get included in it, so the example provided would be parsed into a enum with two types (SQTR and LOG2).

To Reproduce

sklearn.ensemble.ExtraTreesClassifier.__init__.max_features

Type says:
{"sqrt", "log2", None}, int or float, default="sqrt"

Expected behavior

None should be listed as it's own type:
{"sqrt", "log2", None}, int or float, default="sqrt"
-> {"sqrt", "log2"}, int or float or None, default="sqrt"
or not at all
-> {"sqrt", "log2"}, int or float, default="sqrt"

Screenshots (optional)

No response

Additional Context (optional)

No response

@GideonKoenig GideonKoenig added the bug 🪲 Something isn't working label Jul 1, 2022
@lars-reimann lars-reimann transferred this issue from Safe-DS/API-Editor Mar 19, 2023
@lars-reimann lars-reimann added @enum Related to the @enum annotation missing annotation An annotation should have been generated automatically but wasn't labels Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🪲 Something isn't working @enum Related to the @enum annotation missing annotation An annotation should have been generated automatically but wasn't
Projects
Status: Backlog
Development

No branches or pull requests

2 participants