chore(invocations): use IMAGE_MODES constant literal

This commit is contained in:
dunkeroni
2024-02-18 16:56:46 -05:00
committed by psychedelicious
parent 2dfdc02ec8
commit 6dada3326d
3 changed files with 10 additions and 8 deletions

View File

@ -12,3 +12,6 @@ The ratio of image:latent dimensions is LATENT_SCALE_FACTOR:1, or 8:1.
SCHEDULER_NAME_VALUES = Literal[tuple(SCHEDULER_MAP.keys())]
"""A literal type representing the valid scheduler names."""
IMAGE_MODES = Literal["L", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F"]
"""A literal type for PIL image modes supported by Invoke"""