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

Certain pattern will create an @enum annotation, even though it should be a UnionType #42

Open
Masara opened this issue Jun 24, 2022 · 0 comments
Labels
bug 🪲 Something isn't working @enum Related to the @enum annotation wrong annotation An annotation was generated automatically but is incorrect

Comments

@Masara
Copy link
Contributor

Masara commented Jun 24, 2022

Is your feature request related to a problem?

Currently, the pattern

    stop_words : {'english'}, list, default=None

will result in an @enum annotation.

Desired solution

It should be a UnionType (with, in this case, Enum, List and None types).

Possible alternatives (optional)

No response

Screenshots (optional)

Screenshots of the current state:
image
image
image

Additional Context (optional)

Examples:

  • #/sklearn/sklearn.metrics._classification/f1_score/average
@Masara Masara added the enhancement 💡 New feature or request label Jun 24, 2022
@lars-reimann lars-reimann changed the title Certain pattern will create an @enum annotiation, even tho it should be an UnionType Certain pattern will create an @enum annotiation, even though it should be an UnionType Jun 24, 2022
@lars-reimann lars-reimann changed the title Certain pattern will create an @enum annotiation, even though it should be an UnionType Certain pattern will create an @enum annotiation, even though it should be a UnionType Jun 24, 2022
@lars-reimann lars-reimann changed the title Certain pattern will create an @enum annotiation, even though it should be a UnionType Certain pattern will create an @enum annotation, even though it should be a UnionType Jun 24, 2022
@lars-reimann lars-reimann added @enum Related to the @enum annotation bug 🪲 Something isn't working wrong annotation An annotation was generated automatically but is incorrect and removed enhancement 💡 New feature or request labels Jun 25, 2022
@lars-reimann lars-reimann transferred this issue from Safe-DS/API-Editor 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 wrong annotation An annotation was generated automatically but is incorrect
Projects
Status: Backlog
Development

No branches or pull requests

2 participants