mypy
b3d43984 - stubtest: fix false negative with dunder methods, small changes (#8886)

Commit
6 years ago
stubtest: fix false negative with dunder methods, small changes (#8886) * stubtest: use stub.name over runtime.__name__ Seems to be a little more reliable * stubtest: remove unnecessary code I can no longer repro any of the behaviour related to distutils.command. I found one case it can come up involving builtins, but overall I think this code is just simpler like this. * stubtest: fix false negatives If the stub doesn't list dunder methods, we wouldn't check them earlier. There are a lot of false negatives due to this. * teststubtest: add a test for the previous commit Also covers some of the MRO logic in verify_typeinfo Co-authored-by: hauntsaninja <>
Author
Parents
Loading