Skip to content

Commit

Permalink
fix: pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Oct 16, 2024
1 parent e913307 commit 933f08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/transpiler/unroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FlagMeta(EnumMeta):
def __getitem__(self, keys):
if isinstance(keys, str):
return super().__getitem__(keys)
return reduce(or_, [self[key] for key in keys])
return reduce(or_, [super().__getitem__(key) for key in keys])


class NativeGates(Flag, metaclass=FlagMeta):
Expand Down

0 comments on commit 933f08c

Please sign in to comment.