Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This repository was 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

@Masara

Description

@Masara

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @enumRelated to the @enum annotationbug 🪲Something isn't workingwrong annotationAn annotation was generated automatically but is incorrect

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions