onekey-sec / unblob

Extract files from any kind of container formats
https://unblob.org
Other
2.15k stars 80 forks source link

plugins: `is_dir` was always true #679

Closed vlaci closed 10 months ago

qkaiser commented 10 months ago

How did you pick it up ? Ruff ?

vlaci commented 10 months ago

How did you pick it up ? Ruff ?

:smile: Experimented with mypy:

unblob/plugins.py:58: error: Function "is_dir" could always be true in boolean context  [truthy-function]