summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-29 14:25:52 (GMT)
committerGitHub <noreply@github.com>2024-01-29 14:25:52 (GMT)
commit07d68ea843d6251efcdadc167cd7840112bc13d2 (patch)
tree35c6021a43b789407c111a091f03d1d280b0bb8f /Doc
parentca9a7fc24f606a4b2daa6d23297d9e0c33a36d8e (diff)
downloadcpython-07d68ea843d6251efcdadc167cd7840112bc13d2.zip
cpython-07d68ea843d6251efcdadc167cd7840112bc13d2.tar.gz
cpython-07d68ea843d6251efcdadc167cd7840112bc13d2.tar.bz2
[3.11] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114715)
(cherry picked from commit d7d0d13cd37651990586d31d8974c59bd25e1045) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/tarfile.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index cd2df3e..32d77d5 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -660,6 +660,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.
@@ -830,26 +831,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.