From 997c520d7d1d76774190a6c003c0b0a3fe5d04ea Mon Sep 17 00:00:00 2001 From: Guo Ci Date: Sun, 4 Jan 2026 15:38:17 -0500 Subject: [PATCH] [stdlib][tarfile] Fix `pax_headers` type annotation in tarfile.pyi docs: https://docs.python.org/dev/library/tarfile.html#tarfile.TarFile.pax_headers src: https://github.com/python/cpython/blob/e6bfe4d8869e046a91d091611d3c7b5dccdaf0d6/Lib/tarfile.py#L1775-L1778 --- stdlib/tarfile.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/tarfile.pyi b/stdlib/tarfile.pyi index 4ef096be330e..ba2bd16db468 100644 --- a/stdlib/tarfile.pyi +++ b/stdlib/tarfile.pyi @@ -127,7 +127,7 @@ class TarFile: encoding: str | None errors: str fileobject: type[ExFileObject] # undocumented - pax_headers: Mapping[str, str] | None + pax_headers: Mapping[str, str] debug: int | None errorlevel: int | None offset: int # undocumented