-
```py
from typing import TypeVar
T = TypeVar("T", int, str, contravariant=True)
```
this should be an error because variance has no effect on constrained `TypeVar`s, because they aren't real g…
-
**Describe the bug**
Pyright will only suggest one `Literal` value for a `TypedDict` union:
![Image](https://github.com/user-attachments/assets/8c37c827-080d-4e26-9292-b27847f0b5c5)
Ideally it'd su…
-
Pyright hangs on the following code:
```python
from collections.abc import Callable
from typing import Protocol
class MyProto(Protocol):
def __call__[A, B](self, a: Callable[[A], B], b:…
-
Yesterday's commit 3fd23f17ddff8d22115f7b0b9d3f4ed8fb90add3 added the option `lsp-pyright-venv-directory`, but there was already an option `lsp-pyright-venv-path`, which, judging by the description, h…
-
Using a bare `Final` special form with a default value, pyright will _not_ assume it is a normal field (probably because it assumes it is a `ClassVar`?):
Code sample in [pyright playground](https://p…
-
### Problem description
I'm using AstroNvim with Mason, and I have black, ruff, and pyright installed. For some reason Pyright isn't attached and is not working in neovim. It works via terminal. Ho…
-
## Environment data
- Pylance version: v2024.9.2
- OS and version: Windows 10
- Python version: 3.12.1 x64 Official
## Repro Steps
1. create a `temp.py` file with
```pyt…
-
Having users directed to the `attrs` issue tracker with `pyright` type-checking issues described as bugs in attrs doesn't feel great.
_Originally posted by @hynek in https://github.com/python-attrs…
-
See https://github.com/openzim/devdocs/pull/37#discussion_r1832039501
-
### Bug description
`pyright` uses `...` to determine the body of this method is not implemented here. Without using `...`, `pyright` rightfully (IMHO, as is the only way it has to know the user is i…