-
```python3
from typing import Dict, Union
d: Dict[Union[str, int], None] = {}
e: Dict[str, None] = {}
# not ok
d.update(e)
# ok
d.update(e.items())
# ok
for key, value in e.items():…
-
**Bug Report**
Mypy is evaluating `builtins.object` instead of `Union[X, Y]` as the returned type when passing an argument of type `Type[Union[X, Y]]` to a `def [T] (cl: Type[T']) -> T'` fu…
-
### Problem
JupyterLab doesn't recognise `.pyi` files as Python files, and doesn't automatically perform syntax highlighting when a `.pyi` file is opened and doesn't display the Python file icon in…
-
Here's a list of runtime thingies that caught us when working with loguru ;-).
Thanks to @Delgan support we know two of those being #18 and #7 . I bet there is more. This collective issue aims to bri…
-
Problem
--
Using `Any` is not type safe, therefore Mypy provides options to disallow `Any`. However, there are many uses of `Any` from third-party and stdlib, so these options tend to result in a …
-
**Bug Report**
When matching on a union between a named tuple and something else, class/as pattern binds to a type different than the named tuple.
That is, the body of `case Foo() as f…
-
**Bug Report**
When displaying a type error about e.g. a variable that contains unicode characters, mypy crashes.
**To Reproduce**
1. Make a file `file.py` containing the line `x=γ`.
…
-
**Bug Report**
There are some scenarios where inheriting from `MutableSequence` and built-in `list` (in this exact order) is important. This is the case for [`atoml`](https://github.com/fro…
-
**Bug Report**
Let me introduce some shorthand notation for the sake of clarity. Let `V` be a virtual environment, `Vsp` the `site-packages` location within `V`, `P` a prefix path and `Psp`…
-
I'm still using this wonderful library! It would be really nice to have type annotations, which help with linting and discovering bugs early, and act as documentation.
Something like:
```python
…