basedpyright
basedpyright copied to clipboard
pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
fixes #120
```py from abc import abstractmethod from typing import override class Foo: @abstractmethod def __enter__(self) -> None: ... class Bar(Foo): @override def __enter__(self) -> None: # error: Method "__enter__" does not...
I'm not sure how it would look, but: ```py def f(x: bool): if x: exit(1) `Never` print("hi") ``` I think this would be useful, as it's quite easy for a...
```py f"{1} 123{ {123}}123\n" # correct f"{1} 123{{123}}123\n" # incorrect ``` 
Using this code as an example (verified on [basedpyright.com](http://basedpyright.com/)): class Foo: pass Foo(1) There is an `reportUnusedCallResult` and `reportCallIssue` on line 2. Attaching `# pyright: ignore[reportCallIssue]`, the remaining `reportUnusedCallResult` is...
  currently it's purple (`SemanticTokenTypes.keyword`) but i think the `type` keyword is more similar to the blue keywords than the purple ones. though i have no idea what the...
One feature that Pylance has that I'm sorely missing is that they have detailed docstrings for the Python standard library. Pyright seems to have very few, if any. I'm not...
```py from typing import overload @overload def foo(a: str) -> int: ... @overload def foo(a: int) -> str: ... def foo(a): ... # inferred as `def foo(a: str | int)...
Hi! Is it possible to add executeCommand standardized command for renaming a file? I'm the user of LazyVim neovim distro and I found that there is autocommand integration with various...
Wider support for older glibc Fixes #167 --- I'm not super familiar with the project, so fixed up what I could. Let me know what I've missed.