Use set[str] for lookup instead of list[str]

This commit is contained in:
Roy Nieterau 2025-06-18 09:54:21 +02:00
parent f8ff18f3a7
commit 48e840622d
2 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ class ExtractOIIOTranscode(publish.Extractor):
optional = True optional = True
# Supported extensions # Supported extensions
supported_exts = ["exr", "jpg", "jpeg", "png", "dpx"] supported_exts = {"exr", "jpg", "jpeg", "png", "dpx"}
# Configurable by Settings # Configurable by Settings
profiles = None profiles = None

View file

@ -135,11 +135,11 @@ class ExtractReview(pyblish.api.InstancePlugin):
] ]
# Supported extensions # Supported extensions
image_exts = ["exr", "jpg", "jpeg", "png", "dpx", "tga", "tiff", "tif"] image_exts = {"exr", "jpg", "jpeg", "png", "dpx", "tga", "tiff", "tif"}
video_exts = ["mov", "mp4"] video_exts = {"mov", "mp4"}
supported_exts = image_exts + video_exts supported_exts = image_exts.union(video_exts)
alpha_exts = ["exr", "png", "dpx"] alpha_exts = {"exr", "png", "dpx"}
# Preset attributes # Preset attributes
profiles = [] profiles = []