Skip to content

fix: strict zip of items that fail on __eq__#135

Merged
vxgmichel merged 1 commit intovxgmichel:mainfrom
vthemelis:main
Sep 21, 2025
Merged

fix: strict zip of items that fail on __eq__#135
vxgmichel merged 1 commit intovxgmichel:mainfrom
vthemelis:main

Conversation

@vthemelis
Copy link
Copy Markdown
Contributor

@vthemelis vthemelis commented Sep 19, 2025

Some classes that could be in a stream (eg polars.DataFrame) fail on __eq__() with an object of a different type.

Additionally, calling the custom __eq__ can be needlessly slow.

Instead, use isinstance to compare against the sentinel value.

Some classes that could be in a stream (eg polars.DataFrame) fail on
__eq__() with an object of a different type.

Additionally, calling the custom __eq__ can be needlessly slow.

Instead, use isinstance to compare against the sentinel value.
@vthemelis vthemelis changed the title fix: strict zip of items that fail on __eq__ fix: strict zip of items that fail on __eq__ Sep 21, 2025
@vthemelis vthemelis changed the title fix: strict zip of items that fail on __eq__ fix: strict zip of items that fail on __eq__ Sep 21, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (918a50f) to head (4a844a5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #135   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines         1157      1157           
=========================================
  Hits          1157      1157           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vxgmichel
Copy link
Copy Markdown
Owner

@vthemelis Thanks a lot for the PR, lgtm :)

Do you need a new release right away?

@vxgmichel vxgmichel merged commit fdfc337 into vxgmichel:main Sep 21, 2025
22 checks passed
vthemelis added a commit to vthemelis/aiostream that referenced this pull request Sep 23, 2025
vxgmichel#135 got merged very quickly
(thanks!) and I forgot to switch to simply using `is` for the comparison
(which is faster and more appropriate).
vthemelis added a commit to vthemelis/aiostream that referenced this pull request Sep 23, 2025
vxgmichel#135 got merged very quickly
(thanks!) and I forgot to switch to simply using `is` for the comparison
(which is faster and more appropriate).
vxgmichel pushed a commit that referenced this pull request Sep 24, 2025
@vxgmichel
Copy link
Copy Markdown
Owner

Released in v0.7.1 🎉

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