-
mypy fails:
```
/tmp/tmpukd3yzxb/.venv-393476311071167225/lib/python3.11/site-packages/numpy/ma/extras.pyi:2: error: Cannot find implementation or library stub for module named "numpy.lib.index_tr…
-
Pylint is okay but it can be extremely slow, ruff on the other hand is much faster and the set of rules that it uses are much more reasonable. In combination with mypy one can enforce type checking an…
-
We should add type hinting everywhere across the code.
Happy for gradual, but eventually working up to mypy strict typing.
-
Would you be interested in me raising a PR to add mypy types to this library?
I'm using this library in a project I'm currently working on which runs mypy across the codebase. Currently, I have to …
-
We have no immediate plans to implement this, but I decided to open this issue for discussions, to split it out from #1337.
Original post by @intgr https://github.com/typeddjango/django-stubs/issue…
intgr updated
1 month ago
-
I'm trying to write a test that runs mypy. I _thought_ I had the following working in rules_python 0.22.0:
```shell
$ ls -A
.bazelversion BUILD MODULE.bazel WORKSPACE bar.py foo.py lint.bzl…
-
Mypy strict typing is not enforced.
```bash
mypy --strict src/sciber_yklocker.py
```
Update precommit to enforce strict typing:
```yaml
hooks:
- id: mypy
args: ["--ignore…
-
**Bug Report**
Trying to infer types from docstrings with python3.12 inline generics fails to generate.
**To Reproduce**
```python
from mypy.stubdoc import infer_sig_from_docstring
…
-
### Brand Name
mypy
### Website
https://github.com/python/mypy
### Popularity Metric
Github (12.3k): https://github.com/python/mypy
Axexa (1.98M): https://www.alexa.com/siteinfo/mypy-lang.org
…
-
Might be useful for consistency to always `from __future__ import annotations`
This can be done using ruff:
```
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"…