Skip to content

Commit 516eed0

Browse files
authored
[tarfile] Fix some TarFile attributes to be non-optional (#15367)
1 parent f7619a4 commit 516eed0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/tarfile.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ class TarFile:
119119
OPEN_METH: ClassVar[Mapping[str, str]]
120120
name: StrOrBytesPath | None
121121
mode: Literal["r", "a", "w", "x"]
122-
fileobj: _Fileobj | None
123-
format: _TarFormat | None
122+
fileobj: _Fileobj
123+
format: _TarFormat
124124
tarinfo: type[TarInfo]
125-
dereference: bool | None
126-
ignore_zeros: bool | None
127-
encoding: str | None
125+
dereference: bool
126+
ignore_zeros: bool
127+
encoding: str
128128
errors: str
129129
fileobject: type[ExFileObject] # undocumented
130130
pax_headers: Mapping[str, str]
131-
debug: int | None
131+
debug: int
132132
errorlevel: int
133133
offset: int # undocumented
134134
extraction_filter: _FilterFunction | None

0 commit comments

Comments
 (0)