Skip to content

Commit 0795d9a

Browse files
[3.12] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114714)
(cherry picked from commit d7d0d13) Co-authored-by: Stanley <[email protected]>
1 parent c09a010 commit 0795d9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/tarfile.rst

+6
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ be finalized; only the internally used file object will be closed. See the
668668

669669

670670
.. attribute:: TarFile.pax_headers
671+
:type: dict
671672

672673
A dictionary containing key-value pairs of pax global headers.
673674

@@ -833,26 +834,31 @@ A ``TarInfo`` object has the following public data attributes:
833834
attribute.
834835

835836
.. attribute:: TarInfo.chksum
837+
:type: int
836838

837839
Header checksum.
838840

839841

840842
.. attribute:: TarInfo.devmajor
843+
:type: int
841844

842845
Device major number.
843846

844847

845848
.. attribute:: TarInfo.devminor
849+
:type: int
846850

847851
Device minor number.
848852

849853

850854
.. attribute:: TarInfo.offset
855+
:type: int
851856

852857
The tar header starts here.
853858

854859

855860
.. attribute:: TarInfo.offset_data
861+
:type: int
856862

857863
The file's data starts here.
858864

0 commit comments

Comments
 (0)