10000 PR: Transform sorting functions from md to rst file by steff456 · Pull Request #333 · data-apis/array-api · GitHub
[go: up one dir, main page]

Skip to content

PR: Transform sorting functions from md to rst file #333

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

Merged
merged 10 commits into from
Dec 6, 2021
Prev Previous commit
Put return section style as parameters and remove return type section
  • Loading branch information
steff456 committed Dec 1, 2021
commit 5b1ec764f4ec2f94bf1ef0db1696f494671f226b
4 changes: 2 additions & 2 deletions spec/API_specification/signatures/sorting_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def argsort(x: array, /, *, axis: int = -1, descending: bool = False, stable: bo

Returns
-------
out: array
out : array
an array of indices. The returned array must have the same shape as ``x``. The returned array must have the default array index data type.
"""

Expand All @@ -38,7 +38,7 @@ def sort(x: array, /, *, axis: int = -1, descending: bool = False, stable: bool

Returns
-------
out: array
out : array
a sorted array. The returned array must have the same data type and shape as ``x``.
"""

Expand Down
3 changes: 2 additions & 1 deletion spec/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
]

autosummary_generate = True
autodoc_typehints = 'both'
autodoc_typehints = 'signature'
add_module_names = False
napoleon_custom_sections = [('Returns', 'params_style')]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
0