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

Accept Tempfile in Stupidedi::Reader.build #250

Open
sshaw opened this issue Nov 21, 2022 · 1 comment
Open

Accept Tempfile in Stupidedi::Reader.build #250

sshaw opened this issue Nov 21, 2022 · 1 comment

Comments

@sshaw
Copy link

sshaw commented Nov 21, 2022

A Tempfile is a IO, really. From the docs:

A Tempfile objects behaves just like a File object, and you can perform all the usual file operations on it: reading data, writing data, changing its permissions, etc. So although this class does not explicitly document all instance methods supported by File, you can in fact call any File instance method on a Tempfile object.

Now when passing it to Stupidedi::Reader.build it results in a TypeError.

@kputnam
Copy link
Owner

kputnam commented Aug 13, 2023

Thanks for the bug report, and sorry for the long silence. I would accept a PR that addresses this!

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

No branches or pull requests

2 participants