Skip to content

Commit b4efce8

Browse files
committed
Remove cast to bool
1 parent 4744255 commit b4efce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensquirrel/ir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def name(self) -> str:
521521

522522
@property
523523
def is_named_gate(self) -> bool:
524-
return bool(self.generator and self.generator.__name__)
524+
return not (self.generator is None or self.generator.__name__ is None)
525525

526526
@property
527527
def is_anonymous(self) -> bool:

0 commit comments

Comments
 (0)