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

error/cant detect match case #691

Closed
AhmadNaruto opened this issue Jan 18, 2022 · 2 comments
Closed

error/cant detect match case #691

AhmadNaruto opened this issue Jan 18, 2022 · 2 comments
Assignees

Comments

@AhmadNaruto
Copy link

AhmadNaruto commented Jan 18, 2022

What's the output of :CocCommand pyright.version

coc-pyright 1.1.208 with Pyright 1.1.209

What's the output of :CocCommand workspace.showOutput Pyright

using Neovim
if python code contain "match" case (python 3.10)
its always show error "formating with balck failed"
not sure its problem is from pyright or from black.

@yaegassy
Copy link
Contributor

yaegassy commented Jan 18, 2022

@AhmadNaruto Add setting --target-version py310 to python.formatting.blackArgs and try it.

coc-settings.json:

{
  "python.formatting.blackArgs": ["--target-version", "py310"],
}

See:

@AhmadNaruto
Copy link
Author

@AhmadNaruto Add setting --target-version py310 to python.formatting.blackArgs and try it.

coc-settings.json:

{
  "python.formatting.blackArgs": ["--target-version", "py310"],
}

See:

nice... thanks. its work now

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

No branches or pull requests

3 participants