I use python-magic fork ahead of main, not repo... It's here https://github.com/aking1012/python-magic