Skip to content

fix align type and default value at : or = in hover panel #3239#3973

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3239
Open

fix align type and default value at : or = in hover panel #3239#3973
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3239

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #3239

multiline hover signatures with defaults now align parameter names at : and defaults at =.

reused existing default-value spelling logic from hover formatting.

notice: to avoid too much test case changes, I don't align those only have :.

Test Plan

added a regression test for aligned multiline hover signatures.

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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

1 participant