8000 Fixed a merge miss · nirum-lang/nirum-python@1b37594 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b37594

Browse files
committed
Fixed a merge miss
1 parent f67cc29 commit 1b37594

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Version 0.5.6
66

77
To be released.
88

9+
- Fixed a bug that ``hash()`` on ``nirum.datastructures.List`` had raised
10+
``TypeError``.
11+
912

1013
Version 0.5.5
1114
-------------
@@ -105,8 +108,6 @@ Released on April 5, 2018.
105108
function) to ``nirum.datastructures.Map`` and ``nirum.datastructures.List``.
106109
[`#110`_]
107110

108-
.. _#110: https://github.com/spoqa/nirum-python/issues/110
109-
110111

111112
Version 0.4.2
112113
-------------

nirum/datastructures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __iter__(self):
9898
return iter(self.items)
9999

100100
def __hash__(self):
101-
return hash(self.items)
101+
return hash(tuple(self.items))
102102

103103
def index(self, item):
104104
return self.items.index(item)

0 commit comments

Comments
 (0)
0