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

FIX If the help of an argument is None, don't fail #138

Merged
merged 1 commit into from
May 14, 2024

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented May 9, 2024

Summary

This is a fix for a regression introduced in #134. It's possible that the argument has a help attribute, but the value of it is None. We then hit a type error where we pass None to re.sub.

Tasks

  • Added unit tests
  • Added documentation for new features (where applicable)
  • Added release notes (using reno)
  • Ran test suite and style checks and built documentation (tox)

(no release note needed since it's a fix for an unreleased feature)

This is a fix for a regression introduced in click-contrib#134. It's possible that the
argument has a `help` attribute, but the value of it is `None`. We then hit a
type error where we pass `None` to `re.sub`.
hoodmane added a commit to hoodmane/pyodide that referenced this pull request May 9, 2024
hoodmane added a commit to pyodide/pyodide that referenced this pull request May 9, 2024
@stephenfin stephenfin merged commit 82b5bcd into click-contrib:master May 14, 2024
3 of 8 checks passed
@hoodmane hoodmane deleted the arguments-with-no-help branch May 14, 2024 23:05
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