Skip to content
New issue

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

simplify batch creation in executor #2493

Closed
wants to merge 1 commit into from
Closed

Conversation

natestemen
Copy link
Member

Description

Was just digging around in this code and found a place to simplify some code using itertools.batched.

@cosenal
Copy link
Contributor

cosenal commented Sep 4, 2024

Added in version 3.12.

😬

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.71%. Comparing base (685e7d0) to head (e2f69fa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2493      +/-   ##
==========================================
- Coverage   98.71%   98.71%   -0.01%     
==========================================
  Files          89       89              
  Lines        4131     4129       -2     
==========================================
- Hits         4078     4076       -2     
  Misses         53       53              

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

@natestemen
Copy link
Member Author

Ahhhh yeah, I saw that which is why I didn't immediately assign a reviewer. I was hoping that itertools==3.12 could be used on earlier versions of python, but I guess that's not how it works. Closing.

@natestemen natestemen closed this Sep 4, 2024
@natestemen natestemen deleted the nts-batch-golf branch September 4, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants