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

### Description https://github.com/microsoft/pyright/issues/9226

based
rejected upstream

### Description from https://github.com/microsoft/pyright/issues/8007: > ### Describe the bug > > **TL;DR:** false-positive `Override does not handle all overloads of base method` > > Pyright reports an incompatible method override...

rejected upstream
type checking / linting

### Description Folders listed under `strict` in the configuration appear to use the "recommended" type checking mode instead of "strict", resulting in different OOTB results when compared to Pyright. This...

config

### Description Code sample in [basedpyright playground](https://basedpyright.com/?typeCheckingMode=all&code=GYJw9gtgBALgngBwJYDsDmUkQWEMoAK4MYAxmADYCwAULbaRQIYDOLUAYmGABRFglyFAJQAuWlElQAJgFNgUVtOA8WsisGFQAtAD4oLGCFFQAxFFkhwICVLsAiR0uCP7QA) ```python from typing import Protocol class Foo(Protocol): def asdf(self) -> str: # error """asdf""" ``` upstream issue: https://github.com/microsoft/pyright/issues/9037

rejected upstream
type checking / linting

### Description Code sample in [basedpyright playground](https://basedpyright.com/?typeCheckingMode=all&reportUnusedParameter=false&code=GYJw9gtgBApgdgV2gSwgBzCALlAooiAWAChRIosBPNZOAcylQ2ygBlksYQBDAGxIHEAxr24BnMVABiYMAAp8SAJQAuElA1RuUALxQAjOs0AjXVABMgkgBMYwKMFkBtACoBdOQDc%2BCGCqguSlAAtAB8Af4AdNFWxCAwnjB8APpUaDByjvIA5OLWwNlKQQDEUGJYIAA0ZQAWYAi81lDGMFAARHnAbSTxiSlpGVlyMmCR3EVQpSPVYnUNTS1sHFx8TiNjbkA) ```python from enum import Enum from typing import Literal class Foo(Enum): a = 1 b = 2 def foo[T](value: T) -> T: ......

based

### Description Code sample in [basedpyright playground](https://basedpyright.com/?typeCheckingMode=all&code=GYJw9gtgBApgdgV2gSwgBzCALlAooiAWAChRIosBPNZOAcylQ2ygBlksYQBDAGxIHEAxr24BnMVABiYMAAp8SAJQAuElA1RuUALxQAjOs0AjXVABMgklTQxpsgEJgEcACZn2nHrwDaMsAB03AA09oHGALqCrjDAUAD6cgBufAgwKmGqRhrxGf5OLu56KbxpJEA) ```python from enum import Enum from typing import Literal class Foo(Enum): a = 1 b = 2 type FooBound = Literal[Foo.a, Foo.b] def...

rejected upstream
type checking / linting

### Description Hello! First of all, thanks for all your efforts. This is a great project! I am trying to migrate our single-src folder layout to uv workspaces. Unfortunately, basedpyright...

language server

### Description ![Image](https://github.com/user-attachments/assets/a34aa3a1-1588-4f99-b440-facce7852d3d) but completions work: ![Image](https://github.com/user-attachments/assets/26962a47-70b5-44ca-9cce-fb2584162c68) ![Image](https://github.com/user-attachments/assets/0494d98e-e96a-452d-b317-83f60735645c) this seems to only happen when the only available suggestion is a module import (`import x`) rather than a `from x import...

language server
LSP: code actions
LSP: import suggestions

i think they should always run outside the venv, because there are tests specifically to be run inside a venv which implies the rest of the tests should be runnable...

project
tests

### Description This would be nice to have, as it allows for the "Expand/Shrink Selection" features in VSCode, which Pylance currently supports. LSP: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_selectionRange

language server
pylance parity
pycharm parity