We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ac270 commit 7dcbb9eCopy full SHA for 7dcbb9e
amaranth/lib/wiring.py
@@ -1277,6 +1277,9 @@ def __eq__(self, other):
1277
"""
1278
return type(self) is type(other) and self.__unflipped == other.__unflipped
1279
1280
+ def __hash__(self):
1281
+ return hash(self.__unflipped)
1282
+
1283
# See the note in `FlippedSignature`. In addition, these accessors also handle flipping of
1284
# an interface member.
1285
0 commit comments