18
18
Add delete (via remove_file) and update (via writestr and write methods)
19
19
To enable update features use MutableZipFile with the 'with statement',
20
20
Upon __ exit__ (if updates were applied) a new zip file will override the
21
- exiting one with the updates
21
+ exiting one with the updates.
22
22
23
23
#### Signature
24
24
@@ -30,31 +30,31 @@ class MutableZipFile(ZipFile):
30
30
mode : Literal[" r" , " w" , " x" , " a" ] = " r" ,
31
31
compression : int = ZIP_STORED ,
32
32
allowZip64 : bool = False ,
33
- ): ...
33
+ ) -> None : ...
34
34
```
35
35
36
36
### MutableZipFile()._ closeAllTempFiles
37
37
38
38
[ Show source in __ init__ .py:118] ( ../../../mutablezip/__init__.py#L118 )
39
39
40
- Close all temporary files
40
+ Close all temporary files.
41
41
42
42
#### Signature
43
43
44
44
``` python
45
- def _closeAllTempFiles (self ): ...
45
+ def _closeAllTempFiles (self ) -> None : ...
46
46
```
47
47
48
48
### MutableZipFile().removeFile
49
49
50
50
[ Show source in __ init__ .py:124] ( ../../../mutablezip/__init__.py#L124 )
51
51
52
- Flag a file with a delete marker
52
+ Flag a file with a delete marker.
53
53
54
54
#### Signature
55
55
56
56
``` python
57
- def removeFile (self , path : str | PathLike[str ]): ...
57
+ def removeFile (self , path : str | PathLike[str ]) -> None : ...
58
58
```
59
59
60
60
### MutableZipFile().write
@@ -70,7 +70,7 @@ def write(
70
70
arcname : str | PathLike[str ] | None = None ,
71
71
compress_type : int | None = None ,
72
72
compresslevel : int | None = None ,
73
- ): ...
73
+ ) -> None : ...
74
74
```
75
75
76
76
### MutableZipFile().writestr
@@ -86,5 +86,5 @@ def writestr(
86
86
data : bytes | str ,
87
87
compress_type : int | None = None ,
88
88
compresslevel : int | None = None ,
89
- ): ...
89
+ ) -> None : ...
90
90
```
0 commit comments