1818Add delete (via remove_file) and update (via writestr and write methods)
1919To enable update features use MutableZipFile with the 'with statement',
2020Upon __ exit__ (if updates were applied) a new zip file will override the
21- exiting one with the updates
21+ exiting one with the updates.
2222
2323#### Signature
2424
@@ -30,31 +30,31 @@ class MutableZipFile(ZipFile):
3030 mode : Literal[" r" , " w" , " x" , " a" ] = " r" ,
3131 compression : int = ZIP_STORED ,
3232 allowZip64 : bool = False ,
33- ): ...
33+ ) -> None : ...
3434```
3535
3636### MutableZipFile()._ closeAllTempFiles
3737
3838[ Show source in __ init__ .py:118] ( ../../../mutablezip/__init__.py#L118 )
3939
40- Close all temporary files
40+ Close all temporary files.
4141
4242#### Signature
4343
4444``` python
45- def _closeAllTempFiles (self ): ...
45+ def _closeAllTempFiles (self ) -> None : ...
4646```
4747
4848### MutableZipFile().removeFile
4949
5050[ Show source in __ init__ .py:124] ( ../../../mutablezip/__init__.py#L124 )
5151
52- Flag a file with a delete marker
52+ Flag a file with a delete marker.
5353
5454#### Signature
5555
5656``` python
57- def removeFile (self , path : str | PathLike[str ]): ...
57+ def removeFile (self , path : str | PathLike[str ]) -> None : ...
5858```
5959
6060### MutableZipFile().write
@@ -70,7 +70,7 @@ def write(
7070 arcname : str | PathLike[str ] | None = None ,
7171 compress_type : int | None = None ,
7272 compresslevel : int | None = None ,
73- ): ...
73+ ) -> None : ...
7474```
7575
7676### MutableZipFile().writestr
@@ -86,5 +86,5 @@ def writestr(
8686 data : bytes | str ,
8787 compress_type : int | None = None ,
8888 compresslevel : int | None = None ,
89- ): ...
89+ ) -> None : ...
9090```
0 commit comments