Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff f821 fix in byte.py #681

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

evelynmitchell
Copy link
Contributor

@evelynmitchell evelynmitchell commented Dec 17, 2024

ruff had an F821 error in byte.py complaining about magic, which wasn't imported.
As this file is manipulating byte files of different varieties, if you want to do that, this patch should enable that.

The fix is to import python-magic, and magic in byte.py.

Another approach would be to remove mention of the magic file check in byte.py at line 577, 684


📚 Documentation preview 📚: https://swarms--681.org.readthedocs.build/en/681/

evelynmitchell and others added 5 commits November 27, 2024 20:38
This requires adding an import, python-magic. I don't know what byte.py is for, or whether you want this fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants