Skip to content

Commit

Permalink
feat: remove unused args/kwargs in a method
Browse files Browse the repository at this point in the history
Technically a change in the API, but it was a mistake to have these in - they
served no purpose.
  • Loading branch information
michalc committed May 27, 2024
1 parent 6fd4a18 commit 86d6f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class _NO_COMPRESSION_32_TYPE(Method):
def _get(self, offset: int, default_get_compressobj: _CompressObjGetter) -> _MethodTuple:
return _NO_COMPRESSION_BUFFERED_32, _NO_AUTO_UPGRADE_CENTRAL_DIRECTORY, default_get_compressobj, 0, 0

def __call__(self, uncompressed_size: int, crc_32: int, *args: Any, **kwarg: Any) -> Method:
def __call__(self, uncompressed_size: int, crc_32: int) -> Method:
class _NO_COMPRESSION_32_TYPE_STREAMED_TYPE(Method):
def _get(self, offset: int, default_get_compressobj: _CompressObjGetter) -> _MethodTuple:
return _NO_COMPRESSION_STREAMED_32, _NO_AUTO_UPGRADE_CENTRAL_DIRECTORY, default_get_compressobj, uncompressed_size, crc_32
Expand Down

0 comments on commit 86d6f65

Please sign in to comment.