-
`Generator[int, None, None]` is super gross, especially since they are pretty much never used
-
Currently asymmetric properties are not supported by `mypy`. It `mypy` this is considered a bug with high priority ([issue](https://github.com/python/mypy/issues/3004)).
`basemypy` decided to go th…
-
**Bug Report**
A `while` loop in a function prevents mypy to detect a missing return statement.
**To Reproduce**
https://mypy-play.net/?mypy=latest&python=3.12&flags=strict&gist=363627f…
-
It would be handy if `run()` would return the result of the selected binding. Currently it always returns None. This would for example allow sub-commands to return an exit code rather than each having…
-
-
```py
from pydantic import BaseModel, ConfigDict, TypeAdapter as _TypeAdapter, ValidationError # noqa: TID251
```
```toml
[lint.flake8-tidy-imports.banned-api]
"pydantic.BaseModel".msg = "use `A…
-
### Describe the problem
Why is `Mapping`s key type made covariant? This is already discussed and showed to be unsafe in https://github.com/python/typing/pull/273. This contradicts type theory.
### …
-
```py
from lxml.etree import XML
assert XML(b"").attrib == {'foo': 'bar'}
```
mypy complains about this code, even though it works at runtime:
```
Non-overlapping equality check (left operand …
-
```py
foo: int | None = None
def bar():
global foo
foo = None
baz()
if foo is None: # error: condition is always True
...
def baz():
global foo
foo = 1
`…
-
**Bug Report**
mypy raises error if list of command line arguments (passing to `subprocess.call`) contains items of different types (for example, `str` and `pathlib.Path`). It can be fixed by addin…