-
Requires integrating typeshed into the module resolver.
-
**Is your feature request related to a problem? Please describe.**
There is a [PEP for inline script metadata](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-scr…
-
The type guard `isinstance(x, object)` should be a no-op because all objects in Python derive from `object`, but pyright's narrowing logic (in the positive direction) is not treating it as a no-op.
…
-
While I understand that using classes can be a workaround, but it's super verbose.
Supporting something like this would be amazing:
```python
from types import SimpleNamespace
class Table(SimpleNa…
-
I'm having issues with pyright-python where the settings under `[tool.pyright]` are not being picked up when run via pre-commit. Works fine if i add a `pyrightconfig.json` (although this just seems to…
-
Environment data
- Language Server version: 2024.7.1
- OS and version: linux x64
- Python version (and distribution if applicable, e.g. Anaconda): 3.12.3
- python.analysis.indexing…
-
Example code `code.py`:
```python
import urllib.error
raise urllib.error.HTTPError("https://example.com/", 502, "Bad Gateway", hdrs={}, fp=None)
```
mypy complains:
```
code.py:2: error: Argume…
-
[PEP 695](https://peps.python.org/pep-0695/) was accepted, and it looks like it will make it into Python 3.12. This PEP adds support for a new type parameter syntax for generic classes and methods. It…
-
Currently, we use an extra `str` overload when using literals. For example:
```python
@overload
def open(mode: Literal["r"] = ...) -> int: ...
@overload
def open(mode: Literal["w"]) -> str: ...…
-
### Describe the bug
The [B202:tarfile_unsafe_members](https://bandit.readthedocs.io/en/latest/plugins/b202_tarfile_unsafe_members.html) documentation says to pass a callable as the `members` argum…