-
Given this program:
```
from typing import Self
class X:
def __new__(cls, *args: object, **kwargs: object) -> Self: ...
def __init__(self, *args: object, a: int) -> None: ...
```
…
-
Starting in Python 3.13, a dunder `__replace__` is added onto all dataclasses instances that effectively replicates the previous module level `dataclasses.replace`. See [here](https://github.com/pytho…
-
**Documentation**
`typing.IO` and subclasses `typing.TextIO` and `typing.BinaryIO` are a bit of a legacy feature and should be used sparingly. We should document better alternatives. I'm preparing …
-
In `mypy/maptype.py`, we have a function `class_derivation_paths` that finds all the paths up the hierarchy from a derived class to a given ancestor class. The code implicitly assumes that this functi…
-
Both types-setuptools and types-psutil (potentially even more) are not redistributing the LICENSE file from the repo.
Please add this file to the pypi release
-
The mypy devs are working on a feature that allows automatic discovery and downloading of project interface stubs by appending a suffix to existing projects (in the form of `-stubs`): https://www.pyth…
-
**Describe the bug**
Field.type on in `dataclasses` was recently [changed](https://github.com/python/typeshed/pull/12082) to have type `Type[_T] | str | Any`. However, pyright seems to think the type…
-
Hello,
I have been getting started with `tkinter` this week, and noticed some issues/possible improvements to the type hints. One of these is adding hints for a string param that can technically be…
-
### Bug description
There's a noticeable difference in the calculated optimal thresholds when comparing the ROC curve implementations between `sklearn.metrics.roc_curve` and `torchmetrics.functiona…
-
This is an alternative to #2440 (disallowing third-party stubs). The idea is that typeshed remains/becomes a central repository for third-party stubs that are not bundled with the parent package, simi…