The existing code works, but it probably doesn't do what the author thought it would do. `(x or y or z) is not None` works by checking that each of those things are *truthy* in turn, and returning the first truthy value, which is compared against None. Using `all()` makes it very clear that what you want to do is make sure that each value is not None.pull/8884/head
parent
d636b92c1a
commit
132420a059
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue