[3.12] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114714)

(cherry picked from commit d7d0d13cd3)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-01-29 15:25:46 +01:00 committed by GitHub
parent c09a01032d
commit 0795d9a17a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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.