mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Add binary files to stubgen blacklisted path

Open Avasam opened this issue 2 years ago • 1 comments

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

Avasam avatar Jan 14 '23 17:01 Avasam

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 (?)

Avasam avatar Jan 14 '23 17:01 Avasam

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?

hauntsaninja avatar Jan 22 '23 08:01 hauntsaninja

Closing, since Jukka merged the other one. But please let me know if it doesn't work for you!

hauntsaninja avatar Jan 22 '23 18:01 hauntsaninja

Just tried latest master and it works fine :)

Avasam avatar Jan 23 '23 01:01 Avasam