basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server

Results 467 basedpyright issues
Sort by recently updated
recently updated
newest added

```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...

upstream issue (rejected)
type checking

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...

unreachable
language server
inlay hints

```py f"{1} 123{ {123}}123\n" # correct f"{1} 123{{123}}123\n" # incorrect ``` ![image](https://github.com/DetachHead/basedpyright/assets/65446343/77edb38d-b0f9-45ec-afca-1ee4156c33f7)

vscode
language server
syntax highlighting

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...

type checking
config

![image](https://github.com/DetachHead/basedpyright/assets/57028336/35bd6c39-a442-4c95-b32d-8858951b2a31) ![image](https://github.com/DetachHead/basedpyright/assets/57028336/2d7b96d2-d1ff-4a5b-8fb8-13331edecc2a) 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...

vscode
language server
syntax highlighting

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...

language server
pylance feature parity

```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)...

based
type checking / linting

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...

language server

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.