♻️(backend) replace hardcoded file extensions with Python enum

Convert hardcoded string file extensions into a well-defined Python enum.
Improves type safety and centralizes extension definitions for better
maintainability and consistency across the codebase.

It was dirty manipulating literals for file extension validation …
This commit is contained in:
lebaudantoine
2025-04-11 13:44:03 +02:00
committed by aleb_the_flash
parent 3a4f4e7016
commit d74dd967af
2 changed files with 17 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Enums related to recordings."""
from enum import Enum
class FileExtension(Enum):
"""Enum for file extensions used in recordings."""
OGG = "ogg"
MP4 = "mp4"