Skip to content

Conversation

@Luc1412
Copy link
Member

@Luc1412 Luc1412 commented Oct 18, 2025

Summary

This PR fixes typing for Enum. This inlcudes:

  • Accessing .value of an enum causes Cannot access attribute "value" for class "CosmeticType"
  • Enum.EXAMPLE can't be assigned to Enum, since it's a Literal[str](Argument of type "Literal['track']" cannot be assigned to parameter "type" of type "CosmeticType" in function "__new__")

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@Luc1412 Luc1412 self-assigned this Oct 18, 2025
@Luc1412 Luc1412 merged commit b00e071 into master Oct 30, 2025
7 checks passed
@Luc1412 Luc1412 deleted the fix-enum-typing branch November 9, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants