Merge pull request #6040 from hugovk/fix-docs-return

Fix return in docs
This commit is contained in:
mergify[bot] 2022-02-09 13:19:48 +00:00 committed by GitHub
commit 1c679a93f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -482,6 +482,7 @@ class JpegImageFile(ImageFile.ImageFile):
""" """
Returns a dictionary containing the XMP tags. Returns a dictionary containing the XMP tags.
Requires defusedxml to be installed. Requires defusedxml to be installed.
:returns: XMP tags in a dictionary. :returns: XMP tags in a dictionary.
""" """

View File

@ -982,6 +982,7 @@ class PngImageFile(ImageFile.ImageFile):
""" """
Returns a dictionary containing the XMP tags. Returns a dictionary containing the XMP tags.
Requires defusedxml to be installed. Requires defusedxml to be installed.
:returns: XMP tags in a dictionary. :returns: XMP tags in a dictionary.
""" """
return ( return (

View File

@ -1124,6 +1124,7 @@ class TiffImageFile(ImageFile.ImageFile):
""" """
Returns a dictionary containing the XMP tags. Returns a dictionary containing the XMP tags.
Requires defusedxml to be installed. Requires defusedxml to be installed.
:returns: XMP tags in a dictionary. :returns: XMP tags in a dictionary.
""" """
return self._getxmp(self.tag_v2[700]) if 700 in self.tag_v2 else {} return self._getxmp(self.tag_v2[700]) if 700 in self.tag_v2 else {}