Fix media accept config type (#147445)

This commit is contained in:
Paulus Schoutsen 2025-06-24 16:41:43 -04:00 committed by GitHub
parent c93e45c0f2
commit c270ea4e0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1010,9 +1010,11 @@ class LocationSelector(Selector[LocationSelectorConfig]):
return location
class MediaSelectorConfig(BaseSelectorConfig):
class MediaSelectorConfig(BaseSelectorConfig, total=False):
"""Class to represent a media selector config."""
accept: list[str]
@SELECTORS.register("media")
class MediaSelector(Selector[MediaSelectorConfig]):