mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Changed: Name argument type to support None value (#5075)
Closes: #5027
This commit is contained in:
@@ -135,7 +135,7 @@ class TarFile(Iterable[TarInfo]):
|
||||
@classmethod
|
||||
def taropen(
|
||||
cls,
|
||||
name: AnyPath,
|
||||
name: Optional[AnyPath],
|
||||
mode: str = ...,
|
||||
fileobj: Optional[IO[bytes]] = ...,
|
||||
*,
|
||||
@@ -152,7 +152,7 @@ class TarFile(Iterable[TarInfo]):
|
||||
@classmethod
|
||||
def gzopen(
|
||||
cls,
|
||||
name: AnyPath,
|
||||
name: Optional[AnyPath],
|
||||
mode: str = ...,
|
||||
fileobj: Optional[IO[bytes]] = ...,
|
||||
compresslevel: int = ...,
|
||||
@@ -169,7 +169,7 @@ class TarFile(Iterable[TarInfo]):
|
||||
@classmethod
|
||||
def bz2open(
|
||||
cls,
|
||||
name: AnyPath,
|
||||
name: Optional[AnyPath],
|
||||
mode: str = ...,
|
||||
fileobj: Optional[IO[bytes]] = ...,
|
||||
compresslevel: int = ...,
|
||||
@@ -186,7 +186,7 @@ class TarFile(Iterable[TarInfo]):
|
||||
@classmethod
|
||||
def xzopen(
|
||||
cls,
|
||||
name: AnyPath,
|
||||
name: Optional[AnyPath],
|
||||
mode: str = ...,
|
||||
fileobj: Optional[IO[bytes]] = ...,
|
||||
preset: Optional[int] = ...,
|
||||
|
||||
Reference in New Issue
Block a user