Removed unnecessary tuple construction in Node.__eq__().

This commit is contained in:
Nick Pope 2021-07-19 05:38:35 +01:00 committed by GitHub
parent f3825ee050
commit e21daa4e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ class Node:
def __eq__(self, other):
return (
self.__class__ == other.__class__ and
(self.connector, self.negated) == (other.connector, other.negated) and
self.connector == other.connector and
self.negated == other.negated and
self.children == other.children
)