]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114714)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 29 Jan 2024 14:25:46 +0000 (15:25 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2024 14:25:46 +0000 (14:25 +0000)
(cherry picked from commit d7d0d13cd37651990586d31d8974c59bd25e1045)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Doc/library/tarfile.rst

index dbbcb127f6f2093d93ca32ea280b724e3511f636..755581cfc6f640c188e7aca4903b13e3a45a6b76 100644 (file)
@@ -668,6 +668,7 @@ be finalized; only the internally used file object will be closed. See the
 
 
 .. attribute:: TarFile.pax_headers
+   :type: dict
 
    A dictionary containing key-value pairs of pax global headers.
 
@@ -833,26 +834,31 @@ A ``TarInfo`` object has the following public data attributes:
       attribute.
 
 .. attribute:: TarInfo.chksum
+   :type: int
 
    Header checksum.
 
 
 .. attribute:: TarInfo.devmajor
+   :type: int
 
    Device major number.
 
 
 .. attribute:: TarInfo.devminor
+   :type: int
 
    Device minor number.
 
 
 .. attribute:: TarInfo.offset
+   :type: int
 
    The tar header starts here.
 
 
 .. attribute:: TarInfo.offset_data
+   :type: int
 
    The file's data starts here.