Skip to content

Database.query methods share docstrings#13515

Merged
scheibelp merged 2 commits intodevelopfrom
docs/database-methods-share-docstring
Oct 30, 2019
Merged

Database.query methods share docstrings#13515
scheibelp merged 2 commits intodevelopfrom
docs/database-methods-share-docstring

Conversation

@becker33
Copy link
Copy Markdown
Member

Currently, query arguments in the Spack core are documented on the Database._query method, where the functionality is defined.

For users of the spack python command, this makes the python builtin method help less than ideally useful, as help(spack.store.db.query) and help(spack.store.db.query_local) do not show relevant information.

This PR updates the doc attributes for the Database.query and Database.query_local arguments to mirror everything after the first line of the Database._query docstring.

@scheibelp scheibelp merged commit a97faeb into develop Oct 30, 2019
tgamblin pushed a commit that referenced this pull request Nov 1, 2019
Currently, query arguments in the Spack core are documented on the
Database._query method, where the functionality is defined.

For users of the spack python command, this makes the python builtin
method help less than ideally useful, as help(spack.store.db.query)
and help(spack.store.db.query_local) do not show relevant information.

This PR updates the doc attributes for the Database.query and
Database.query_local arguments to mirror everything after the first
line of the Database._query docstring.
tldahlgren added a commit to tldahlgren/spack that referenced this pull request Dec 10, 2019
@tgamblin tgamblin deleted the docs/database-methods-share-docstring branch December 24, 2019 09:11
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

Successfully merging this pull request may close these issues.

2 participants