Add binary files to stubgen blacklisted path
Add binary files to stubgen blacklisted path. .so for Linux and macOS. .dll for Windows.
Fixes #14028
References: https://github.com/python/typeshed/tree/main/stubs/pywin32 and https://github.com/python/typeshed/tree/main/stubs/tree-sitter-languages/%40tests
I'm not convinced whether this is the right approach. And as can be seen in the tree-sitter-languages stub, it might be good if stubtest also didn't try to parse .so files (?)
I'm not sure this is the right approach. I opened an alternative here: https://github.com/python/mypy/pull/14503 I don't have access to a Windows system, mind confirming whether that fixes?
Closing, since Jukka merged the other one. But please let me know if it doesn't work for you!
Just tried latest master and it works fine :)