From 4c381e924008a791dd26323b1dea04984de54944 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 4 Feb 2026 08:18:27 +0100 Subject: [PATCH] Update TarFile class attributes to be non-optional --- stdlib/tarfile.pyi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stdlib/tarfile.pyi b/stdlib/tarfile.pyi index 5eecdd350c0a..6e68c370f3aa 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