-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: API reference tweaks & clean-up (#89)
* sphinx conf: remove invalid options * disable pybind11 generated docstring signatures Add them manually instead, without type hints. It is a bit more tedious to maintain but the result is more consistent and readable. - Pybind11 type hints not always reliable (e.g., non-vectorized arguments of py::vectorize functions show as numpy.ndarray, too generic return type) - didn't work with sphinx's ``autodoc_typehints = "none"``, which seemed to be ignored for some reason. Adding type hints in the function signatures in the API documentation makes those signature less readable and doesn't add much information (type hints already in the parameter and return description sections) Also add "Returns" sections in docstrings more globally. * fix get_dimensions() Return values that are consistent with shapely for collections. * add more Returns sections in docstrings * add docstrings for Projection static methods Also move Projection to api-hidden. * GeographyType: add docstrings and tests * Use "geography" as name for single arg functions Also move get_x and get_y functions to geography.cpp (geography properties). * doc API: add description for each subsection * add (py)arrow to intersphinx * review comments * 1-arg vectorized funcs: pos only
- Loading branch information
Showing
17 changed files
with
636 additions
and
248 deletions.
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
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
Oops, something went wrong.