Skip to content

Fix issue 81#82

Merged
erezsh merged 3 commits into
erezsh:masterfrom
rkrenzler:fix/issue-81-hashdiff-none-comparison
Aug 7, 2025
Merged

Fix issue 81#82
erezsh merged 3 commits into
erezsh:masterfrom
rkrenzler:fix/issue-81-hashdiff-none-comparison

Conversation

@rkrenzler

Copy link
Copy Markdown

Fix "HashDiffer may fail if differences between tables contain None and non-None values" which causes "TypeError: '<' not supported between instances of 'str' and 'NoneType'".

Fix "HashDiffer may fail if differences between tables contain None and non-None values"
which causes "TypeError: '<' not supported between instances of 'str' and 'NoneType'".
@erezsh

erezsh commented Aug 5, 2025

Copy link
Copy Markdown
Owner

Looks good, thanks!

Any chance you can include a small test to show it sorts None and str correctly?

@rkrenzler

rkrenzler commented Aug 5, 2025

Copy link
Copy Markdown
Author

Looks good, thanks!

Any chance you can include a small test to show it sorts None and str correctly?

Thank you for the fast reply and for the tests! I will add some unit tests.
I will also check why Python 3.8 failed.

@rkrenzler

Copy link
Copy Markdown
Author

I used a Python 3.9+ type hint "tuple[str, Sequence]" instead of Python 3.8 "Tuple[str, Sequence]". I fixed it.

@erezsh
erezsh merged commit a23937f into erezsh:master Aug 7, 2025
10 of 11 checks passed
@erezsh

erezsh commented Aug 7, 2025

Copy link
Copy Markdown
Owner

Fixes issue #81 .

Thanks for your contribution!

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