-
```
> git clone https://github.com/DataDog/dd-trace-py
> cd dd-trace-py
> pip install -e .
> pip install mypy
> mypy --strict --check-untyped-defs | grep threading.py
ddtrace/profiling/collector…
-
Using mypy 0.641 with the --disallow-any-expr flag and this sample using `@overload`
```
from typing import Callable, Tuple, TypeVar, overload
T = TypeVar('T')
A0 = TypeVar('A0')
A1 = TypeVar…
keis updated
11 months ago
-
thanks for fixing #36 so quickly
i noticed that both basedpyright and basedmypy report the function as containing `Any` when using the `main` decorator with click
```py
import click
from mainp…
-
It can be frustrating when you have a git configuration to use different line endings to you system default, and mypy write baseline with system line endings instead of git ones. This causes vscode to…
-
See PR: #12918 (draft).
**Feature**
There should be no need for annotations for kwargs in the following (partial) function definitions:
```python
def bool_args(ok=True, die=False)
def int_a…
-
I believe there is a use case for generic inference that doesn't get as wide as possible.
Look at this example of an assertion function, you would never want to do an assertion between two differen…
-
The following should be an error, but it currently is not.
```python
from collections.abc import Callable
from typing import Any
def f(call: Callable[..., Any]) -> None:
print(call.__na…
-
If the duck typed types were actually unions of all the ducklings then it would fix a bunch of edge cases that arise.
And would make this feature more easily understood and discovered.
```py
def fu…
-
https://github.com/python/mypy/pull/14191#issuecomment-1328372923
```py
a: list[int]
for i in a:
if i:
b = i
break
else:
b = 1
print(b) # error: Name "b" may be u…
-
**Version**: uv 0.4.11
When `--no-binary` is used, some packages run a compiler during package installation, but others just ship a Python fallback in their sdist.
An example of which is black…