explicitly cast to bool

This commit is contained in:
Danny Ryan 2019-08-27 10:36:25 -06:00 committed by GitHub
parent 79e34a00e8
commit 78a0e15e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def unpack_compact_validator(compact_validator: CompactValidator) -> Tuple[Valid
""" """
return ( return (
ValidatorIndex(compact_validator >> 16), ValidatorIndex(compact_validator >> 16),
(compact_validator >> 15) % 2 == 0, bool((compact_validator >> 15) % 2),
uint64(compact_validator & (2**15 - 1)), uint64(compact_validator & (2**15 - 1)),
) )
``` ```