Conversation
b30cd49 to
02c74f2
Compare
|
After reflecting on this change for a bit, I realized I don't want to apply this technique generally. One of the nice things about Python is the ability to use the boolean inference to make checks on objects that aren't themselves boolean. It's nice not to have to write I'm guessing the typechecker authors have already considered this problem and realized that since Any python object can be treated as a boolean, there's little strictness in allowing a declared 'bool' to resolve from Any. I do want to try avoid sprinkling |
Reduce changes from #343
Technically a user-facing change, but not sure how to present that in a changelog for setuptools, considering the changelog entry "Always return an actual
boolfromhas_*functions" wouldn't apply to all setuptools' own methods.