Skip to content

Commit

Permalink
use Flags not Flags|int
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Mar 30, 2024
1 parent 5355af0 commit c4114ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(
intent: Intent = Intent.PERCEPTUAL,
proof: ImageCmsProfile | None = None,
proof_intent: Intent = Intent.ABSOLUTE_COLORIMETRIC,
flags: Flags | int = Flags.NONE,
flags: Flags = Flags.NONE,
):
if proof is None:
self.transform = core.buildTransform(
Expand Down Expand Up @@ -385,7 +385,7 @@ def profileToProfile(
renderingIntent: Intent = Intent.PERCEPTUAL,
outputMode: str | None = None,
inPlace: bool = False,
flags: Flags | int = Flags.NONE,
flags: Flags = Flags.NONE,
) -> Image.Image | None:
"""
(pyCMS) Applies an ICC transformation to a given image, mapping from
Expand Down Expand Up @@ -504,7 +504,7 @@ def buildTransform(
inMode: str,
outMode: str,
renderingIntent: Intent = Intent.PERCEPTUAL,
flags: Flags | int = Flags.NONE,
flags: Flags = Flags.NONE,
) -> ImageCmsTransform:
"""
(pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the
Expand Down Expand Up @@ -589,7 +589,7 @@ def buildProofTransform(
outMode: str,
renderingIntent: Intent = Intent.PERCEPTUAL,
proofRenderingIntent: Intent = Intent.ABSOLUTE_COLORIMETRIC,
flags: Flags | int = Flags.SOFTPROOFING,
flags: Flags = Flags.SOFTPROOFING,
) -> ImageCmsTransform:
"""
(pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the
Expand Down

0 comments on commit c4114ad

Please sign in to comment.