Skip to content
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

Support YARD's experimental type parser by removing "optional" from type descriptions #1553

Open
kaylareopelle opened this issue Dec 12, 2023 · 1 comment
Labels

Comments

@kaylareopelle
Copy link
Contributor

In #1517 (comment), @olleolleolle brought to our attention the YARD experimental type parser does not support [optional Type] argument descriptions in the documentation. One suggested alternative approach is to include the word optional in the description of the argument. This pattern is common in the opentelemetry-ruby repo.

Here's one place where the [optional Type] pattern is used:

# @param [optional Context] context The context to update with with new
# modified baggage. Defaults to +Context.current+
# @return [Context]

Let's revisit our pattern for declaring optional types and determine if we want to adopt a change that supports YARD's type parser.

Copy link
Contributor

github-actions bot commented Mar 1, 2024

👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant