Skip to content

Commit

Permalink
document ImageCms.{ImageCmsProfile,Intent,Direction}; fix ImageCms.c…
Browse files Browse the repository at this point in the history
…ore.CmsProfile references
  • Loading branch information
nulano committed Jan 20, 2024
1 parent 9f68de3 commit a21409d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,9 +1039,10 @@ def getDefaultIntent(profile: _CmsProfileCompatible) -> int:
raise PyCMSError(v) from v


# TODO sphinx can't understand Literal[1, -1] as return type
def isIntentSupported(
profile: _CmsProfileCompatible, intent: Intent, direction: Direction
) -> Literal[1, -1]:
) -> int:
"""
(pyCMS) Checks if a given intent is supported.
Expand Down

0 comments on commit a21409d

Please sign in to comment.