-
**To Reproduce**
```python
import pandas as pd
x: pd.Series[int] = pd.Series([1, 3, 4], name="my series")
assert isinstance(x, pd.Series) # this line produces the error below
```
mypy giv…
tmke8 updated
11 months ago
-
**Describe the bug**
https://github.com/microsoft/pyright/issues/6443 fixed the issue when providing files or directories via the CLI. The issue still exists if you have missing files in `pyrightconf…
-
**Feature**
_example.py_
```python
from __future__ import annotations
import typing as t
class Node:
parent: Node | None = None
N = t.TypeVar("N", bound=Node)
def find_ancestor(nod…
-
# Reasons
* Improving developer experience with this library.
* Possibility to use static type analysis for the code base.
# Introduction of Type Annotations
- Do some refactoring.
- …
-
**Describe the bug**
`reveal_type` used inside lambda passed to union type of functions emits multiple output.
**Code or Screenshots**
[on pyright-play.net](https://pyright-play.net/?locale=e…
-
**Bug Report**
The behavior of `Annotated` has been changed so that it is allowed at runtime to wrap `ClassVar` and `Final`. This change helps avoid friction with other users of annotations; se…
-
Example code:
```py
import tty
mode = tty.tcgetattr(1)
```
I believe this stems from tty.py using: `from termios import *` - Pyright warns about this with `Wildcard import from a library not al…
-
The type inference system is currently able to detect that `a` in the following are a constant (and all members have the same type for the list case), but then it should infer that the arg `b` must al…
-
**Bug Report**
If you declare an attribute on a dataclass to be `Callable`, Mypy assumes that its `__get__` will not be called, even on a default attribute. But this is only true if the def…
-
**Bug Report**
mypy doesn't seem to properly infer types when unpacking the results of an asyncio.gather() that has at least 6 elements.
This leads to the unpacked variables getting assigned the…