Mercurial > evolve
changeset 6659:aa1cea32ae90
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 17 Jan 2024 16:25:51 -0300 |
parents | edcd6710033e |
children | 31e157a5cfe2 |
files | hgext3rd/evolve/obshistory.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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