Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
- add Python type hints
  • Loading branch information
LuciaHarcekova committed Dec 27, 2022
commit ee06ca09f12cb433752f183b481e81e3015ab820
2 changes: 1 addition & 1 deletion compression/lz77.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LZ77Compressor:
Class containing compress and decompress methods using LZ77 compression algorithm.
"""

def __init__(self, window_size=13, lookahead_buffer_size=6) -> None:
def __init__(self, window_size: int = 13, lookahead_buffer_size: int = 6) -> None:
self.window_size = window_size
self.lookahead_buffer_size = lookahead_buffer_size
self.search_buffer_size = self.window_size - self.lookahead_buffer_size
Expand Down