Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Same enum instance names if the string values only difference are numbers #760

@Masara

Description

@Masara

Describe the bug

Enums instance names can be the same, if the only difference of the string value is a number.
If enum items contain numbers, these numbers will be removed. There are cases where the enums get the same instance name because of this.

To Reproduce

#/sklearn/sklearn.feature_extraction.text/HashingVectorizer/__init__/norm

Expected behavior

The enum should have different instance names. For example, the numbers could be retained and not be removed.

Screenshots (optional)

image

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

bug 🪲Something isn't workingreleasedIncluded in a release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions