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 22d3900 commit 791fa85Copy full SHA for 791fa85
serial/tools/list_ports_common.py
@@ -77,6 +77,9 @@ def apply_usb_info(self):
77
def __eq__(self, other):
78
return isinstance(other, ListPortInfo) and self.device == other.device
79
80
+ def __hash__(self):
81
+ return hash(self.device)
82
+
83
def __lt__(self, other):
84
if not isinstance(other, ListPortInfo):
85
raise TypeError('unorderable types: {}() and {}()'.format(
0 commit comments