Python 3.9 DeprecationWarning on "not NotImplemented" evaluation in handlers/bcrypt.py
When I use passlib on Python 3.9.0rc1, I get the following deprecation warning:
passlib/handlers/bcrypt.py:378: builtins.DeprecationWarning: NotImplemented should not be used in a boolean context
The code that triggers it is the middle line in this fragment:
result = safe_verify("test", test_hash_20)
if not result:
raise RuntimeError("%s incorrectly rejected $2$ hash" % backend)