Thanks to visit codestin.com Credit goes to github.com
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 b1f2d6a commit 908b31bCopy full SHA for 908b31b
1 file changed
lib/matplotlib/gridspec.py
@@ -468,3 +468,8 @@ def __eq__(self, other):
468
return all((self._gridspec == other._gridspec,
469
self.num1 == other.num1,
470
self.num2 == other.num2))
471
+
472
+ def __hash__(self):
473
+ return (hash(self._gridspec) ^
474
+ hash(self.num1) ^
475
+ hash(self.num2))
0 commit comments