Skip to content

Conversation

@rossbar
Copy link
Contributor

@rossbar rossbar commented Jan 6, 2022

Fixes #341

The docstring validation checks the parameter type and warns when certain keywords are used instead of the preferred abbreviation (e.g. integer instead of int). However, this validation check results in false positives if one of these special keywords is specified as a member of a set of valid options, see e.g. the example in #341.

This PR fixes the false positive by skipping the keyword validation when the parameter description is a set of options.

@larsoner
Copy link
Collaborator

larsoner commented Jan 7, 2022

Seems like a reasonable solution, thanks @rossbar !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to specify that parameter can equal the string 'integer'?

3 participants