Fix return in docs

This commit is contained in:
Hugo van Kemenade 2022-02-09 14:28:43 +02:00
parent 4fc553ccfb
commit 601c9d8515
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 {}