File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,10 @@ def _transform(n: int) -> str:
106
106
assert len (TABLE_A2B_B64 ) == 256
107
107
108
108
109
- def a2b_base64 (b64_data : str ) -> bytes :
109
+ def a2b_base64 (b64_data : bytes ) -> bytes :
110
110
"""Convert a block of base64 data back to binary and return the binary data.
111
111
112
- :param str b64_data: Base64 data.
112
+ :param bytes b64_data: Base64 data.
113
113
114
114
"""
115
115
res = []
@@ -148,10 +148,10 @@ def a2b_base64(b64_data: str) -> bytes:
148
148
return b"" .join (res )
149
149
150
150
151
- def b2a_base64 (bin_data : str ) -> bytes :
151
+ def b2a_base64 (bin_data : bytes ) -> bytes :
152
152
"""Convert binary data to a line of ASCII characters in base64 coding.
153
153
154
- :param str bin_data: Binary data string, as bytes
154
+ :param bytes bin_data: Binary data string, as bytes
155
155
156
156
"""
157
157
newlength = (len (bin_data ) + 2 ) // 3
You can’t perform that action at this time.
0 commit comments