# HG changeset patch # User Anton Shestakov # Date 1705519551 10800 # Node ID aa1cea32ae90431bb7e0069a758c1a02e446ad91 # Parent edcd6710033e73ef513347979acb70481de0f012 evolve: add another assert to help pytype We already checked that all elements in ef1 as not false-y, but pytype doesn't understand this, so we need to help it somehow. An assert should be a cheap enough solution. diff -r edcd6710033e -r aa1cea32ae90 hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Thu Jan 18 13:22:27 2024 -0300 +++ b/hgext3rd/evolve/obshistory.py Wed Jan 17 16:25:51 2024 -0300 @@ -828,6 +828,7 @@ if all(ef1): combined = 0 for ef in ef1: + assert ef is not None # help pytype combined |= int(ef) # Combined will be in VERBMAPPING only if one bit is set