Skip to content

Commit 731b8a1

Browse files
author
changsookim
committed
fix: undef variable
1 parent 3bc74dd commit 731b8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qibo/transpiler/unroller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FlagMeta(EnumMeta):
2323
def __getitem__(cls, keys):
2424
if isinstance(keys, str):
2525
return super().__getitem__(keys)
26-
return reduce(or_, [self[key] for key in keys]) # pylint: disable=E1136
26+
return reduce(or_, [cls[key] for key in keys]) # pylint: disable=E1136
2727

2828

2929
class NativeGates(Flag, metaclass=FlagMeta):

0 commit comments

Comments
 (0)