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

Changing generic IO type to BinaryIO. #100

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

johanols
Copy link
Contributor

@johanols johanols commented Nov 22, 2023

Since virtually every implementation expects the underlying data type of the file-like object to be bytes, it is more appropriate to use BinaryIO in favor of the broader IO type.

Checklist

  • Added a docs/changes.rst entry

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Attention: Patch coverage is 0% with 43 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (334dedd) to head (6f67d27).
Report is 71 commits behind head on main.

Files with missing lines Patch % Lines
minimalkv/_key_value_store.py 0.00% 7 Missing ⚠️
minimalkv/net/botostore.py 0.00% 5 Missing ⚠️
minimalkv/cache.py 0.00% 4 Missing ⚠️
minimalkv/fsspecstore.py 0.00% 4 Missing ⚠️
minimalkv/net/gcstore.py 0.00% 4 Missing ⚠️
minimalkv/db/mongo.py 0.00% 3 Missing ⚠️
minimalkv/db/sql.py 0.00% 3 Missing ⚠️
minimalkv/fs.py 0.00% 3 Missing ⚠️
minimalkv/git.py 0.00% 3 Missing ⚠️
minimalkv/idgen.py 0.00% 3 Missing ⚠️
... and 2 more
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #100   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         32      32           
  Lines       1993    1993           
=====================================
  Misses      1993    1993           

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

@xhochy
Copy link
Member

xhochy commented Nov 23, 2023

@fhoehle @janjagusch Can one of you have a look at this?

Since virtually every implementation expects the underlying data type
of the file-like object to be bytes, it is more appropriate to use
`BinaryIO` in favor of the broader `IO` type.
@xhochy xhochy force-pushed the changing-io-typing branch from 75443d3 to 7f105ef Compare November 28, 2023 11:54
@xhochy xhochy merged commit 198bf53 into data-engineering-collective:main Nov 28, 2023
11 checks passed
@xhochy
Copy link
Member

xhochy commented Nov 28, 2023

Thank you!

@johanols johanols deleted the changing-io-typing branch November 28, 2023 20:51
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