Skip to content

Commit d7d0d13

Browse files
authored
gh-89159: Add some TarFile attribute types (GH-114520)
Co-authored-by: Stanley <[email protected]>
1 parent a16a9f9 commit d7d0d13

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
@@ -673,6 +673,7 @@ be finalized; only the internally used file object will be closed. See the
673673

674674

675675
.. attribute:: TarFile.pax_headers
676+
:type: dict
676677

677678
A dictionary containing key-value pairs of pax global headers.
678679

@@ -838,26 +839,31 @@ A ``TarInfo`` object has the following public data attributes:
838839
attribute.
839840

840841
.. attribute:: TarInfo.chksum
842+
:type: int
841843

842844
Header checksum.
843845

844846

845847
.. attribute:: TarInfo.devmajor
848+
:type: int
846849

847850
Device major number.
848851

849852

850853
.. attribute:: TarInfo.devminor
854+
:type: int
851855

852856
Device minor number.
853857

854858

855859
.. attribute:: TarInfo.offset
860+
:type: int
856861

857862
The tar header starts here.
858863

859864

860865
.. attribute:: TarInfo.offset_data
866+
:type: int
861867

862868
The file's data starts here.
863869

0 commit comments

Comments
 (0)