Upstream PR: https://github.com/h2non/filetype/pull/103 We can port it to infer.
Upstream PR: h2non/filetype#103
We can port it to infer.