Closed YeeaaahMan closed 10 months ago
Please add more description of pul-request like as following template?
Pull request type
select from below
- Bug fix
- Feature enhancement
- Documentation
- Build and release changes
- Other
Which ticket is resolved?
- bug ticket/ enhancement issue number
What does this PR change?
-
-
Other information
Please fix CI check errors
tox: check check: commands[0]> flake8 py7zr tests py7zr/py7zr.py:1437:34: BLK100 Black would make changes. tests/test_misc.py:141:28: BLK100 Black would make changes.
tox: mypy mypy: commands[0]> mypy --html-report build/mypy py7zr py7zr/cli.py:358:18: error: Cannot instantiate abstract class "CliExtractCallback" with abstract attribute "report_update" [abstract] Generated HTML report (via XSLT): /home/runner/work/py7zr/py7zr/build/mypy/index.html Found 1 error in 1 file (checked 12 source files) mypy: exit 1 (2.55 seconds) /home/runner/work/py7zr/py7zr> mypy --html-report build/mypy py7zr pid=2865 mypy: FAIL ✖ in 22.69 seconds
Pull request type
Which ticket is resolved?
What does this PR change?
Event "u" (update) is called when file is being extracted more that 1 second or when already extracted. Function report_update() receives decompressed_bytes count for decompressed part. Should be useful for progress bar implementation.
Example