-
```py
def f(a: int): # no nerror
a = 1
print(a)
```
https://basedpyright.com/?typeCheckingMode=all&code=CYUwZgBGAUCGBcUA2B7WAXAlPAUBfEsEAvBAIx4EAOATgJYB26cmQA
and
```py
def f():
a = 1 # …
-
**Describe the bug**
I am trying to construct a custom Data Type along the lines of [this Boolean example](https://pandera.readthedocs.io/en/stable/dtypes.html). My goal is to take a raw data colum…
-
## `Unknown` Definition
A type that can only be cast to `Any`
## Problem
Currently when type checkers fail to understand the type of a function/variable, they fallback on `Any`.
```python
T = Typ…
-
### Check for existing issues
- [X] Completed
### Describe the bug / provide steps to reproduce it
The Code Actions menu does not open for me when I press the keybinding or click the option i…
-
Since for Python besides mypy the other big type checker is pyright (used by Visual Studio Code), add it to CI to ensure code appeases both checkers.
Might find things that mypy overlooked.
Import…
-
### Check for existing issues
- [X] Completed
### Describe the bug / provide steps to reproduce it
1. Work inside a python file
2. [Configure pyright](https://zed.dev/docs/languages/python#s…
-
It seems type annotations are wrong between a Timestamp series and tools offered by the offsets library, using `pyright`
df["year_end"] = df["date"] + pd.tseries.offsets.YearEnd(0) is flagged with …
-
Note: if you are reporting a wrong signature of a function or a class in the standard library, then the typeshed tracker is better suited for this report: https://github.com/python/typeshed/issues.
…
-
**Issue:**
`scip-python` (v0.3.3) produces a fatal error while indexing our source tree during the "Analyze project and dependencies" phase:
```
$ scip-python index \
--project-name=redacted…
-
### What is your issue?
`Pyright` is a full-featured, standards-based static type checker for Python, recently I tried it with xarray and get an error.
And `mypy` generates the same error.
So I won…