mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
chore: run pyupgrade (#623)
- use `{...}` instead of `set([...])`
- do not use `class Foo(object):`, just use `class Foo:`
- do not specify default flags (`"r"`) for `open()`
This commit is contained in:
@@ -274,7 +274,7 @@ class LedgerSpendingConditions:
|
||||
|
||||
# all pubkeys and n_sigs must be the same
|
||||
assert (
|
||||
len(set([tuple(pubs_output) for pubs_output in pubkeys_per_proof])) == 1
|
||||
len({tuple(pubs_output) for pubs_output in pubkeys_per_proof}) == 1
|
||||
), "pubkeys in all proofs must match."
|
||||
assert len(set(n_sigs_per_proof)) == 1, "n_sigs in all proofs must match."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user