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

This is an experiment to see if we can remove https://github.com/python/mypy/blob/790e8a73d8671a41cae419b4ea07579bfb2bc292/misc/sync-typeshed.py#L185 and https://github.com/python/mypy/blob/790e8a73d8671a41cae419b4ea07579bfb2bc292/misc/generate_changelog.py#L82. /cc @AlexWaygood

Fixes #1484 Turns out that this is currently the second most popular mypy issue (and first most popular is a type system feature request that would need a PEP). I'm...

upnext

**Feature** Make `dmypy` look for either its status file or maybe even the socket in a well-known place. As this well-known place I propose for Linux systems a directory `/run/user/$UID/mypy`...

feature
topic-daemon

**Bug Report** The JUnit XML generated by MyPy is invalid. **To Reproduce** Create a list without a type annotation and generate a JUnit XML report using MyPy. ```python def dummy_function():...

bug
topic-error-reporting

Cross-ref python/peps#3649.

Builds on top of and supersedes #16644

upnext

```py # foo.py if bool(): a = 1 ``` ```py # bar.py from foo import a # no error, crashes at runtime ``` i would expect an error like `Name...

bug

**Crash Report** mypy runs into a segfault when using a `TypeVar` like this: ```py T = TypeVar("T", bound=Callable[..., "T"]) ``` **Traceback** Unfortunately, nothing useful shows up: ```sh $ mypy --show-traceback...

crash
topic-type-variables

**Bug Report** The Python docs website document `enum` items as [iterables](https://docs.python.org/3/library/enum.html#enum.EnumType.__iter__): ```python >>> Animal = Enum('Animal', 'ANT BEE CAT DOG') >>> Animal >>> Animal.ANT >>> list(Animal) [, , , ]...

bug
topic-enum

For developing an _Either_-like monad that types correctly and also behaves nicely at runtime I currently use the following pattern to independently declare the types for mypy and the runtime...

feature
priority-1-normal
topic-plugins