Alex Waygood
Alex Waygood
Thanks for your work here, and sorry we've taken so long in getting to this! The new mypy release is picking up on a few bugs in the PR that...
Sounds like a great idea to me! `sortedcontainers` has been around for a while and has a good reputation as a high-quality library. PR welcome! There's some instructions in `CONTRIBUTING.md`...
@jakob-keller, there's no _ideal_ solution here, but the following hack works reasonably well, I think: ```python from collections.abc import Callable from typing import overload class SortedSet: @overload def __new__(cls, key:...
Cc. @sirosen, for interest :)
You can nearly get there with a combination of PEP 612 and PEP 646: ```python import sys from types import GenericAlias from typing import Any, Callable, Concatenate, Generic, ParamSpec, TypeVar,...
Yes, the pytype update did the trick — thanks v much @rchen152!
I agree, though we can't use `object` as the annotation -- it would have to be `Any`: ```python >>> s = {1, 2} >>> s.discard([]) Traceback (most recent call last):...
We already do this in CI for our stdlib stubs, and it works pretty well. For most of our third-party stubs, it might be a bit overkill; but on the...
> We ran into CI limits in the past and we don't need to waste them on what is inconsequential for most stubs. It's an unrelated change, but we could...