mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	use Flags not Flags|int
This commit is contained in:
		
							parent
							
								
									5355af0ddd
								
							
						
					
					
						commit
						c4114adc41
					
				| 
						 | 
					@ -297,7 +297,7 @@ class ImageCmsTransform(Image.ImagePointHandler):
 | 
				
			||||||
        intent: Intent = Intent.PERCEPTUAL,
 | 
					        intent: Intent = Intent.PERCEPTUAL,
 | 
				
			||||||
        proof: ImageCmsProfile | None = None,
 | 
					        proof: ImageCmsProfile | None = None,
 | 
				
			||||||
        proof_intent: Intent = Intent.ABSOLUTE_COLORIMETRIC,
 | 
					        proof_intent: Intent = Intent.ABSOLUTE_COLORIMETRIC,
 | 
				
			||||||
        flags: Flags | int = Flags.NONE,
 | 
					        flags: Flags = Flags.NONE,
 | 
				
			||||||
    ):
 | 
					    ):
 | 
				
			||||||
        if proof is None:
 | 
					        if proof is None:
 | 
				
			||||||
            self.transform = core.buildTransform(
 | 
					            self.transform = core.buildTransform(
 | 
				
			||||||
| 
						 | 
					@ -385,7 +385,7 @@ def profileToProfile(
 | 
				
			||||||
    renderingIntent: Intent = Intent.PERCEPTUAL,
 | 
					    renderingIntent: Intent = Intent.PERCEPTUAL,
 | 
				
			||||||
    outputMode: str | None = None,
 | 
					    outputMode: str | None = None,
 | 
				
			||||||
    inPlace: bool = False,
 | 
					    inPlace: bool = False,
 | 
				
			||||||
    flags: Flags | int = Flags.NONE,
 | 
					    flags: Flags = Flags.NONE,
 | 
				
			||||||
) -> Image.Image | None:
 | 
					) -> Image.Image | None:
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    (pyCMS) Applies an ICC transformation to a given image, mapping from
 | 
					    (pyCMS) Applies an ICC transformation to a given image, mapping from
 | 
				
			||||||
| 
						 | 
					@ -504,7 +504,7 @@ def buildTransform(
 | 
				
			||||||
    inMode: str,
 | 
					    inMode: str,
 | 
				
			||||||
    outMode: str,
 | 
					    outMode: str,
 | 
				
			||||||
    renderingIntent: Intent = Intent.PERCEPTUAL,
 | 
					    renderingIntent: Intent = Intent.PERCEPTUAL,
 | 
				
			||||||
    flags: Flags | int = Flags.NONE,
 | 
					    flags: Flags = Flags.NONE,
 | 
				
			||||||
) -> ImageCmsTransform:
 | 
					) -> ImageCmsTransform:
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    (pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the
 | 
					    (pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the
 | 
				
			||||||
| 
						 | 
					@ -589,7 +589,7 @@ def buildProofTransform(
 | 
				
			||||||
    outMode: str,
 | 
					    outMode: str,
 | 
				
			||||||
    renderingIntent: Intent = Intent.PERCEPTUAL,
 | 
					    renderingIntent: Intent = Intent.PERCEPTUAL,
 | 
				
			||||||
    proofRenderingIntent: Intent = Intent.ABSOLUTE_COLORIMETRIC,
 | 
					    proofRenderingIntent: Intent = Intent.ABSOLUTE_COLORIMETRIC,
 | 
				
			||||||
    flags: Flags | int = Flags.SOFTPROOFING,
 | 
					    flags: Flags = Flags.SOFTPROOFING,
 | 
				
			||||||
) -> ImageCmsTransform:
 | 
					) -> ImageCmsTransform:
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    (pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the
 | 
					    (pyCMS) Builds an ICC transform mapping from the ``inputProfile`` to the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user