griffe
griffe copied to clipboard
fix: Ignore .pth files that are not utf-8 encoded, for example PyTorch files
Fixes #300.
This PR changes how .pth
files are handled. Instead of raising an error for non UTF-8 encoded .pth
files, they should just be skipped. This is a convenient way to filter out .pth
files generated by PyTorch, and which are not path configuration files.