Skip to content

Fix unhashable GenerateParams#192

Merged
monoxgas merged 1 commit intodreadnode:mainfrom
mwgielen:main
Jul 14, 2025
Merged

Fix unhashable GenerateParams#192
monoxgas merged 1 commit intodreadnode:mainfrom
mwgielen:main

Conversation

@mwgielen
Copy link
Copy Markdown
Contributor

Hi, with the latest version of rigging if you provide any 'GenerateParams' to the get_generator function it will throw this error:

TypeError: unhashable type: 'GenerateParams'

This PR adds a simple __hash__ function to GenerateParams to make sure this object is hashable and it will work with the lru_cache decorator.

Notes


This commit fixes the unhashable type: 'GenerateParams'
@mwgielen mwgielen requested a review from a team as a code owner July 10, 2025 06:53
Copy link
Copy Markdown
Contributor

@monoxgas monoxgas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy fix, thanks a lot! 👍

@monoxgas monoxgas merged commit a965b29 into dreadnode:main Jul 14, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants