-
The typeshed stub types `TarInfo.mtime` strictly as `int` (presumably because it gets initialised to `0` in the standard library code). The Python stdlib docs type it as `int|float`. The implementatio…
-
BPO | [34648](https://bugs.python.org/issue34648)
--- | :---
Nosy | @srittau, @berkerpeksag, @JelleZijlstra, @nathanielmanistaatgoogle, @aaronchall
*Note: these values reflect the state of the issue …
-
```pytb
File "/home/runner/work/typeshed/typeshed/scripts/stubsabot.py", line 842, in
asyncio.run(main())
File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/asyncio/runners.py", lin…
-
The following function is given as [a recipe in the `itertools` docs](https://docs.python.org/3/library/itertools.html#itertools-recipes), indicating that it's an idiomatic usage of `groupby`:
```p…
-
**Bug Report**
When creating or updating a new dict with items from another dict with a narrower key type, Mypy complains about some methods which are actually perfectly valid.
**To Reproduce**
…
-
I'm trying to fixup this type hint:
```
class FilterExpr:
__metaclass__: ABCMeta
@abstractmethod
def eval(self, route): ..
```
but am getting this error from the tests:
```
error:…
-
This issue is very similar to #12744, and I've found two of our checkouts that can reproduce this one with dmypy 1.0.0, steps are below
1. Python 3.10.0 on this end if it matters, using mypy / dm…
-
**Bug Report**
Passing a union of collections to a generic function that should preserve the type argument erases it instead. (Or should I say it consolidates it to `object`?)
**To Reproduce**
…
-
**Is your feature request related to a problem? Please describe.**
There is a [PEP for inline script metadata](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-scr…
-
* Are you reporting a bug, or opening a feature request?
bug
* Please insert below the code you are checking with mypy
```python
from typing import Optional, Iterable, TypeVar, Callable
T = T…