We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got this error trying to use a Beat instance as a key in a dictionary:
Beat
File ~/Documents/personal/GuitarProML/.venv/lib/python3.8/site-packages/guitarpro/models.py:69, in hashableAttrs.<locals>.hash_(self) [67](file:///Users/damolina/Documents/personal/GuitarProML/.venv/lib/python3.8/site-packages/guitarpro/models.py?line=66) toEvolve[field.name] = new_value [68](file:///Users/damolina/Documents/personal/GuitarProML/.venv/lib/python3.8/site-packages/guitarpro/models.py?line=67) newSelf = attr.evolve(self, **toEvolve) ---> [69](file:///Users/damolina/Documents/personal/GuitarProML/.venv/lib/python3.8/site-packages/guitarpro/models.py?line=68) return origHash(newSelf) File <attrs generated hash guitarpro.models.Beat>:2, in __hash__(self) [1](file:///%3Cattrs%20generated%20hash%20guitarpro.models.Beat%3E?line=0) def __hash__(self): ----> [2](file:///%3Cattrs%20generated%20hash%20guitarpro.models.Beat%3E?line=1) return hash(( [3](file:///%3Cattrs%20generated%20hash%20guitarpro.models.Beat%3E?line=2) -5048304449766878921, [4](file:///%3Cattrs%20generated%20hash%20guitarpro.models.Beat%3E?line=3) self.notes, [5](file:///%3Cattrs%20generated%20hash%20guitarpro.models.Beat%3E?line=4) self.duration, [6](file:///%3Cattrs%20generated%20hash%20guitarpro.models.Beat%3E?line=5) self.text, ... [18](file:///%3Cattrs%20generated%20hash%20guitarpro.models.NoteEffect%3E?line=17) self.trill, [19](file:///%3Cattrs%20generated%20hash%20guitarpro.models.NoteEffect%3E?line=18) self.vibrato, [20](file:///%3Cattrs%20generated%20hash%20guitarpro.models.NoteEffect%3E?line=19) )) TypeError: unhashable type: 'Fingering'
Name: PyGuitarPro Version: 0.9.2 Python: 3.8.13
The text was updated successfully, but these errors were encountered:
0000e51
Hey @virtualdvid, thanks for reporting!
Sorry, something went wrong.
Fix hashing
897ea22
Fixes #31.
No branches or pull requests
I got this error trying to use a
Beat
instance as a key in a dictionary:Name: PyGuitarPro
Version: 0.9.2
Python: 3.8.13
The text was updated successfully, but these errors were encountered: