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

**Bug Report** Variables with narrowed types do not seem to be transferred into a nested function. **To Reproduce** ```python from typing import Optional def foo(value: Optional[int]) -> int: if value...

bug

Our codebase (all Python3) has a few places where we ended up writing comments that look like `# type: some description ...` prior to adding Mypy. They're usually within a...

feature
good-second-issue

**Feature** Similar to [#9193](https://github.com/python/mypy/issues/9193), I'd like to run `stubgen` with a custom plugin, and more generally, let `stubgen` take a config file **Pitch** `stubgen` is a really powerful tool (thanks...

feature
topic-plugins
topic-stubgen

Fixes #4954. Modifies analysis of `in` comparison expressions. Previously, mypy would check the right operand of an `in` expression to see if it was a union of `Container`s, and then...

With mypy 0.930 (compared with 0.910), it now infers the type of `self._changed = False` as `Literal[False]` instead of `bool`. That doesn't bother me too much, but if I add...

bug
topic-type-narrowing

``` 👉 dmypy start Daemon has started 👉 dmypy kill Daemon killed 👉 dmypy start Daemon has died 👉 dmypy start Daemon is still alive ``` I think this is...

bug
topic-daemon

``` 👉 dmypy start Daemon started 👉 dmypy kill; dmypy start; dmypy check test.py Daemon killed Daemon has died Daemon has died ``` Windows 10

bug
topic-daemon

The point of the `import a as a` and `from a import b as b` syntax for explicit reexport is that it indicates an intention to do something different from...

Hey folks, I guess this is a wrong place to post it, though at this point I kinda feel helpless and I won't get any substantial insights on StackOverflow. What's...

bug
question
performance