This is an archive of the discontinued LLVM Phabricator instance.

Fix mypy warning about short_help using __doc__
ClosedPublic

Authored by thopre on Jan 20 2021, 10:11 AM.

Details

Summary

Several click.command use doc for the short_help but mypy is getting
confused because its type is a union between str and unicode due to
changes between Python2 and Python3. This commit clarifies to Mypy that
it is a string by calling str on doc.

Diff Detail

Repository
rLNT LNT

Event Timeline

thopre created this revision.Jan 20 2021, 10:11 AM
thopre requested review of this revision.Jan 20 2021, 10:11 AM
This revision is now accepted and ready to land.Jan 20 2021, 10:18 AM
This revision was automatically updated to reflect the committed changes.