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
Labels
bug 🪲
Something isn't working
@enum
Related to the @enum annotation
wrong annotation
An annotation was generated automatically but is incorrect
Is your feature request related to a problem?
Currently, the pattern
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](https://user-images.githubusercontent.com/2046129/175530857-66face9e-1612-46a4-bba1-fd46d63f7c83.png)
![image](https://user-images.githubusercontent.com/2046129/175530763-74c86d0d-d14f-41c8-863e-2c48b2b8ee35.png)
![image](https://user-images.githubusercontent.com/2046129/175530796-131c2665-e6af-42fb-8da9-34105c849726.png)
Additional Context (optional)
Examples:
#/sklearn/sklearn.metrics._classification/f1_score/average
The text was updated successfully, but these errors were encountered: