assert message.send_to can never fail
sylann opened this issue · 1 comments
sylann commented
message.send_to is a set and if it contains None values it still is truthy.
assert set([None]) # True
davidism commented
This should probably be up to the user to filter. This can also be handled by static type checking when it's added. Runtime type checking of arguments is generally not done in Python.