Closed yanniskatsaros closed 3 months ago
Are you sure, that this output is from mypy
?
There are likely other plugins running as well.
The mypy
section in your pyprojectl.toml
looks fine to me.
@Richardk2n you're right, I think this is actually an issue with python-lsp-ruff
. I'll go ahead and close this and open an issue there. Sorry about that, thanks!
I have a Python 3.11.9 project
(MacOS Sonoma 14.5 (23F79) - M1 Pro)
configured using solely apyproject.toml
. I am using avenv
with all project dependencies installed and LSP is working correctly in my editor (Helix) andpylsp-mypy
is correctly showing typing errors/diagnostics in my editor. (Note:python-lsp-server
andpylsp-mypy
are both installed in this project's virtual environment.)However, I am getting an LSP error in my editor when using structural pattern matching:
When I manually run
mypy
in my terminal I do not get this error. I tried deleting the entire.mypy_cache
directory as well and re-starting LSP etc. but this did not fix the issue.The following is a snippet of relevant information found in my
pyproject.toml
:I even tried the
overrides
attribute but without any success:I even checked the
python-lsp-server
configuration documentation did not find anything relevant to Python version configuration. Can anyone please help me out, is there something I have misconfigured or is this a bug?