Skip to content

refactor(constants): streamline enums and enhance type annotations #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025

Conversation

exislow
Copy link
Owner

@exislow exislow commented Aug 13, 2025

This commit refactors the codebase to improve readability and maintainability by updating enums and type annotations:

  • Replaced StrEnum attributes: Removed explicit type declarations for enum values to simplify the code.
  • 🛠️ Introduced AudioExtensionsValid enum: Added a new enum for valid audio file extensions.
  • 🔄 Enhanced type annotations: Updated FAVORITES dictionary to include specific type hints for clarity.
  • 🧹 Updated references: Replaced outdated AudioExtensions usage with the new AudioExtensionsValid.

These changes improve code clarity, enforce stricter typing, and enhance extensibility.

This commit refactors the codebase to improve readability and maintainability by updating enums and type annotations:

- ✨ **Replaced `StrEnum` attributes**: Removed explicit type declarations for enum values to simplify the code.
- 🛠️ **Introduced `AudioExtensionsValid` enum**: Added a new enum for valid audio file extensions.
- 🔄 **Enhanced type annotations**: Updated `FAVORITES` dictionary to include specific type hints for clarity.
- 🧹 **Updated references**: Replaced outdated `AudioExtensions` usage with the new `AudioExtensionsValid`.

These changes improve code clarity, enforce stricter typing, and enhance extensibility.
@exislow exislow merged commit 1b534dc into master Aug 13, 2025
3 checks passed
@exislow exislow deleted the playlist-create-file-type-fix branch August 13, 2025 06:17
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.

1 participant