From 516eed0d5f85943817588e464a9c4d2c1b1f503b Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 4 Feb 2026 09:20:09 +0100 Subject: [PATCH] [tarfile] Fix some `TarFile` attributes to be non-optional (#15367) --- stdlib/tarfile.pyi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stdlib/tarfile.pyi b/stdlib/tarfile.pyi index 5eecdd350..6e68c370f 100644 --- a/stdlib/tarfile.pyi +++ b/stdlib/tarfile.pyi @@ -119,16 +119,16 @@ class TarFile: OPEN_METH: ClassVar[Mapping[str, str]] name: StrOrBytesPath | None mode: Literal["r", "a", "w", "x"] - fileobj: _Fileobj | None - format: _TarFormat | None + fileobj: _Fileobj + format: _TarFormat tarinfo: type[TarInfo] - dereference: bool | None - ignore_zeros: bool | None - encoding: str | None + dereference: bool + ignore_zeros: bool + encoding: str errors: str fileobject: type[ExFileObject] # undocumented pax_headers: Mapping[str, str] - debug: int | None + debug: int errorlevel: int offset: int # undocumented extraction_filter: _FilterFunction | None