]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-89159: Add some TarFile attribute types (GH-114520)
authorStanley <46876382+slateny@users.noreply.github.com>
Mon, 29 Jan 2024 09:19:22 +0000 (01:19 -0800)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2024 09:19:22 +0000 (09:19 +0000)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Doc/library/tarfile.rst

index 34a738a7f1c41f001c3168827ed5259b8a827fb1..2134293a0bb0de10cc1ad5ab3257083987f92fb5 100644 (file)
@@ -673,6 +673,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.
 
@@ -838,26 +839,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.