Skip to content

Commit 07d68ea

Browse files
[3.11] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114715)
(cherry picked from commit d7d0d13) Co-authored-by: Stanley <[email protected]>
1 parent ca9a7fc commit 07d68ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/tarfile.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ be finalized; only the internally used file object will be closed. See the
660660

661661

662662
.. attribute:: TarFile.pax_headers
663+
:type: dict
663664

664665
A dictionary containing key-value pairs of pax global headers.
665666

@@ -830,26 +831,31 @@ A ``TarInfo`` object has the following public data attributes:
830831
attribute.
831832

832833
.. attribute:: TarInfo.chksum
834+
:type: int
833835

834836
Header checksum.
835837

836838

837839
.. attribute:: TarInfo.devmajor
840+
:type: int
838841

839842
Device major number.
840843

841844

842845
.. attribute:: TarInfo.devminor
846+
:type: int
843847

844848
Device minor number.
845849

846850

847851
.. attribute:: TarInfo.offset
852+
:type: int
848853

849854
The tar header starts here.
850855

851856

852857
.. attribute:: TarInfo.offset_data
858+
:type: int
853859

854860
The file's data starts here.
855861

0 commit comments

Comments
 (0)