-
### Goal
Discover binding incompatibilities in your code through linting.
``` bash
$ Qt.py --lint my_module.py
#24:my_widget = QtGui.QWidget(): Should be QtWidgets.QWidget()
#103:header.setResizeMod…
-
Minimal reproducible example (playgrounds: [Pyright](https://pyright-play.net/?pyrightVersion=1.1.371&pythonVersion=3.13&strict=true&code=C4TwDgpgBAgg2gFQLpQLxQQWAFA4CYQBmUhAFAG4BcscAzsAE5ICUUAtAHxQBy…
-
# Feature or enhancement
### Proposal:
In the referenced d.p.o thread it was proposed using [stub files](https://typing.readthedocs.io/en/latest/spec/distributing.html#stub-files) to get inspect…
-
**Bug Report**
On **python 3.11** using **StrEnum**, if converting given enum to a list and assigning to a variable, mypy will wrongly assumes that given variable will be `list[str]`, not `list[Str…
-
## Environment data
- Pylance version: 2024.7.1
- OS and version: Windows 11 Enterprise 23H2
- Python version: 3.12.1 (Anaconda)
## Code Snippet
```python
def foo(bar: st…
-
My understanding is that symbols defined at the module scope of a stub file and begin with an underscore are meant to be private to the stub — that they don't represent symbols exported from the modul…
-
The pow to a literal `0` overload has incorrect literal return.
Code:
https://github.com/python/typeshed/blob/1a837277234f12b546d4aa1252e4b44863c0a862/stdlib/builtins.pyi#L284-L287
however, `…
-
**Bug Report**
When two lists whose elements have different types appear in an `or` expression, type inferencing doesn't work properly if the second list is a literal. If the second list is assigne…
-
In this example, the `boto` package has a stub, but the `boto.foo` module does not:
``` bash
$ python3 -m mypy --py2 --silent-imports -c 'import boto.foo'
# no error
$ python3 -m mypy --py2 --silent-…
-
This follows gh-1020 which was closed by gh-7188. This arises because I am adding type hints to sympy (https://github.com/sympy/sympy/pull/25103).
In the following code we have a subclass whose `__…