@@ -10,8 +10,8 @@ metadata tag numbers, names, and type information.
1010.. method :: lookup(tag)
1111
1212 :param tag: Integer tag number
13- :returns: Taginfo namedtuple, From the `` TAGS_V2 ` ` info if possible,
14- otherwise just populating the value and name from `` TAGS ` `.
13+ :returns: Taginfo namedtuple, From the :py:data: ` ~PIL.TiffTags. TAGS_V2 ` info if possible,
14+ otherwise just populating the value and name from :py:data: ` ~PIL.TiffTags. TAGS `.
1515 If the tag is not recognized, "unknown" is returned for the name
1616
1717.. versionadded :: 3.1.0
@@ -22,7 +22,7 @@ metadata tag numbers, names, and type information.
2222
2323 :param value: Integer Tag Number
2424 :param name: Tag Name
25- :param type: Integer type from :py:attr : `PIL.TiffTags.TYPES `
25+ :param type: Integer type from :py:data : `PIL.TiffTags.TYPES `
2626 :param length: Array length: 0 == variable, 1 == single value, n = fixed
2727 :param enum: Dict of name:integer value options for an enumeration
2828
@@ -33,15 +33,17 @@ metadata tag numbers, names, and type information.
3333
3434.. versionadded :: 3.0.0
3535
36- .. py :attribute :: PIL .TiffTags.TAGS_V2
36+ .. py :data :: PIL .TiffTags.TAGS_V2
37+ :type: dict
3738
3839 The ``TAGS_V2 `` dictionary maps 16-bit integer tag numbers to
39- :py:class: `PIL.TagTypes .TagInfo ` tuples for metadata fields defined in the TIFF
40+ :py:class: `PIL.TiffTags .TagInfo ` tuples for metadata fields defined in the TIFF
4041 spec.
4142
4243.. versionadded :: 3.0.0
4344
44- .. py :attribute :: PIL .TiffTags.TAGS
45+ .. py :data :: PIL .TiffTags.TAGS
46+ :type: dict
4547
4648 The ``TAGS `` dictionary maps 16-bit integer TIFF tag number to
4749 descriptive string names. For instance:
@@ -50,10 +52,11 @@ metadata tag numbers, names, and type information.
5052 >>> TAGS [0x 010e ]
5153 'ImageDescription'
5254
53- This dictionary contains a superset of the tags in TAGS_V2, common
55+ This dictionary contains a superset of the tags in :py:data: ` ~PIL.TiffTags. TAGS_V2` , common
5456 EXIF tags, and other well known metadata tags.
5557
56- .. py :attribute :: PIL .TiffTags.TYPES
58+ .. py :data :: PIL .TiffTags.TYPES
59+ :type: dict
5760
5861 The ``TYPES `` dictionary maps the TIFF type short integer to a
5962 human readable type name.
0 commit comments