Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-31506: [Python] Address docstrings in Streams and File Access (Fac…
…tory Functions) (#33609) # Which issue does this PR close? Closes #31506 # Rationale for this change Ensure docstrings for [Streams and File Access](https://arrow.apache.org/docs/python/api/files.html) - Factory Functions - have an Examples section: # What changes are included in this PR? Added docstring examples for: - `pyarrow.input_stream` - `pyarrow.output_stream` - `pyarrow.memory_map` - `pyarrow.create_memory_map` Also pytest argument ` --disable-warnings` for `pytest-cython` is added, see lgpage/pytest-cython#3: ```python =============================== warnings summary =============================== opt/conda/envs/arrow/lib/python3.9/site-packages/pytest_cython/plugin.py:57 /opt/conda/envs/arrow/lib/python3.9/site-packages/pytest_cython/plugin.py:57: PytestRemovedIn8Warning: The (fspath: py.path.local) argument to DoctestModule is deprecated. Please use the (path: pathlib.Path) argument instead. See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path return DoctestModule.from_parent(parent, fspath=path) ``` # Are these changes tested? Yes, locally with `pytest --doctest-cython --disable-warnings pyarrow` and on the CI with `Python / AMD64 Conda Python 3.9 Sphinx & Numpydoc ` build. # Are there any user-facing changes? No. * Closes: #31506 Authored-by: Alenka Frim <frim.alenka@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
- Loading branch information
Showing
2 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters