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

Autocomplete for Literal with formatted string type hint #5333

Open
H41D4x opened this issue Jan 7, 2024 · 1 comment
Open

Autocomplete for Literal with formatted string type hint #5333

H41D4x opened this issue Jan 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@H41D4x
Copy link

H41D4x commented Jan 7, 2024

If you have a question about a behavior that you’re seeing in pyright, consider posting to the Pyright discussion forum.

Is your feature request related to a problem? Please describe.
A clear and concise description of the problem.

For normal strings, i can get the autcomplete working perfectly fine, but the same doesn't happen for b prefixed strings in Literal type hints:

image

image

Describe the solution you’d like
A clear and concise description of the solution you would like to see.

It would be amazing if we could get autocomplete for also b prefixed strings! (i understand that f strings wouldn't be possible since they allow interpolation, so the check could only happen at runtime? but for b strings it should be ok, right?)

@erictraut
Copy link
Contributor

@debonte, @rchiodo, since this is a language server feature request, could you please transfer it to the pylance issue tracker?

@rchiodo rchiodo transferred this issue from microsoft/pyright Jan 8, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jan 8, 2024
@StellaHuang95 StellaHuang95 added enhancement New feature or request and removed needs repro Issue has not been reproduced yet labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants