-
Both calls in this code fail, but I think they should be allowed:
```python
from typing import Callable, Union, Tuple
def f(x: Union[Callable[..., int], Callable[..., str]]) -> None: ...
x: Call…
-
Would you be interested in using mypy to validate [PEP 484 type annotations](https://www.python.org/dev/peps/pep-0484/) as a part of `migra`'s CI? If so, what syntax would you find acceptable? There's…
SKalt updated
2 years ago
-
Not sure how possible this would be, but it would be awesome if we could give our IDEs an idea of what's going on inside a pyo3 function/class with `.pyi` stub files. Pyo3 already knows what rust and …
-
### Initial Checks
- [X] I confirm that I'm using Pydantic V2
### Description
When declaring a class with pydantic's @dataclass, if the keywords are used during instantiation, either in code or fro…
-
I stumbled upon this when setting a new project where I haven't configured mypy yet to just ignore pytest-qt: There are no type annotations.
Is there a reason from this apart from “It's not there …
-
I write this function to check the rightmost common element of two list.
this is the code.
```python
import itertools
def get_common_index(*names: str) -> int:
"""zip genalogy history …
-
**Bug Report**
Regression from 1.6.1 to 1.7: when passing a simple covariant type through a builtin (like sorted) the return type becomes a wider generic based type.
**To Reproduce**
```pytho…
-
**Describe the bug**
Exception with `INTERNAL ERROR: maximum semantic analysis iteration count reached`
**Expected behavior**
A message like `error: Name "Address" is not defined [name-defined…
-
The first step for adding typing support to all of PyObjC is to add typing support for PyObjC-core:
- [ ] Add a .pyi file for ``objc._objc``
- [ ] Add type annotations to files in ``Lib/``.
- [ ]…
-
Hi,
Being on Mac M1 I unpinned all requirements versions because some packages weren't able to build on this architecture.
Everything runs fine then, until testing, for which I get the following …