mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Optional static typing for Python

Results 1055 mypy issues
Sort by recently updated
recently updated
newest added

Typeshed just changed the name of the default branch from `master` to `main` https://github.com/python/typeshed/issues/8956. With the upcoming 1.0 release (#13685), I think it could make sense to do that for...

topic-developer

Similar to last year (#15566), start by dropping support for running mypy with Python 3.8. Users will still be able to type check 3.8 code with `--python-version 3.8` until typeshed...

upnext

Fix https://github.com/python/mypy/issues/17807

This pull request fixes an issue #17036 If some attribute is not defined for a single union item (often None), this helps new users to narrow down by providing hint....

pending

**Bug Report** I recently converted [this project](https://github.com/con/tinuous/tree/97538692451f968607a2c289e0ad80fb9d2e1e32) (linked to at the most recent commit) from a plain script to a Python package. This included adding an un-annotated `_version.py` file generated...

bug
topic-configuration

### Description The current behavior of `strict = True` in a module-level config section actually enables all strictness flags globally, which seems like a bug. This change changes a module-level...

upnext

- Local partial types - PEP 688 change bytearray memoryview promotion by default - Remove logic for legacy bundled stubs - Interpret type as type[Any]? - SQLite cache - Delete...

meta

Fixes #16349 I had to adjust three existing tests. In my opinion, all necessary adjustments indicate an increase in consistency.

upnext

``` > 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/threading.py:25: error: Need type annotation for...

crash