We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since the refactor in #35, we are getting mypy failures for code that runs correctly:
from io import BytesIO import pyarrow import pyarrow.parquet as pyparquet writer = pyarrow.BufferOutputStream() table = pyarrow.Table.from_pandas(dataframe) pyparquet.write_table(table=table, where=writer, compression="GZIP") buffer = BytesIO(writer.getvalue())
error: Argument "where" to "write_table" has incompatible type "BufferOutputStream"; expected "str | Path | IO[Any]" [arg-type] error: Argument "compression" to "write_table" has incompatible type "Literal['GZIP']"; expected "Literal['gzip', 'bz2', 'brotli', 'lz4', 'lz4_frame', 'lz4_raw', 'zstd', 'snappy']" [arg-type] error: Argument 1 to "BytesIO" has incompatible type "pyarrow.__lib_pxi.io.Buffer"; expected "_collections_abc.Buffer" [arg-type]
The text was updated successfully, but these errors were encountered:
error1: fixed in #98 error2: for the compression parameter, please use lowercase error3: fixed in #99
compression
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Since the refactor in #35, we are getting mypy failures for code that runs correctly:
error: Argument "where" to "write_table" has incompatible type "BufferOutputStream"; expected "str | Path | IO[Any]" [arg-type]
error: Argument "compression" to "write_table" has incompatible type "Literal['GZIP']"; expected "Literal['gzip', 'bz2', 'brotli', 'lz4', 'lz4_frame', 'lz4_raw', 'zstd', 'snappy']" [arg-type]
error: Argument 1 to "BytesIO" has incompatible type "pyarrow.__lib_pxi.io.Buffer"; expected "_collections_abc.Buffer" [arg-type]
The text was updated successfully, but these errors were encountered: