InSync
InSync
I couldn't reproduce the problem, even with the same configurations, WSL distro, Pyright version, PyCharm version and project/file locations. The outputs (plus minor rearrangements) are [almost identical](https://gist.github.com/InSyncWithFoo/6fa559fd3a92be7f76bd0e0dfe1a38f6), save for the...
Backlink to discussion: [Specs clarification: `type[A | B]` is equivalent/the same as `type[A] | type[B]`](https://discuss.python.org/t/60912).
This probably means that at least one of [`launch.get().additionalJvmArguments`](https://github.com/JetBrains/intellij-platform-gradle-plugin/blob/33af9bdd1d0d8b996b911781ab23013dd14997f4/src/main/kotlin/org/jetbrains/intellij/platform/gradle/argumentProviders/IntelliJPlatformArgumentProvider.kt#L96-L99) does not include any `=` and thus cannot be [splitted](https://github.com/JetBrains/intellij-platform-gradle-plugin/blob/33af9bdd1d0d8b996b911781ab23013dd14997f4/src/main/kotlin/org/jetbrains/intellij/platform/gradle/models/ProductInfo.kt#L184).
Resolved by #1787.
This is probably by design; fixes for `F401` in `__init__.py` files [are unsafe](https://docs.astral.sh/ruff/rules/unused-import/#fix-safety).
@MichaReiser Does `needless_else` apply to non-`if` `else` clauses too? What about `for`, `while` and `try`/`finally`?
The three functions implemented in #14763 are statement-wise (i.e., one for `if`/`elif`/`else`, one for `for`/`else`, one for `try`/`else`/`finally`). Each function can thus be neatly placed in a branch (`Stmt::If`, `Stmt::For`,...
The plugin's source code can be found [here](https://github.com/InSyncWithFoo/taplo-for-intellij).
Thanks, @kinto0 and @connernilsen; the responses were very helpful and have certainly saved me the efforts of going through the codebase. I got it to work by sending a `workspace/didChangeConfiguration`...
@kinto0 I just rechecked. The client always responds with the correct path; however, what got Pyrefly to work was neither `/didChangeConfiguration` nor the responses to `/configuration`, but that a `pyproject.toml`...