Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stubgen crash when module doesn't set __spec__ (#651)
Per https://docs.python.org/3/library/importlib.html#importlib.util.find_spec, find_spec() can throw ValueError if __spec__ isn't set.
- Loading branch information