Sebastian Rittau
Sebastian Rittau
What makes unittest special here?
I'm still opposed to this. At this point I don't think we should regress our stubs due to type checker bugs that can be worked around with "# type: ignore"....
I would be more open to this if we had some process that would ensure that we restore the "correct" stubs once the bug is fixed in mypy. And by...
It's not a functional regression in this particular case, but stylistic one. We invested effort in streamlining callable annotations to use `object` return types, instead of `Any`. Changing it back...
One idea I have is to merge this and just create the reverting PR already, marking it as "deferred". This would mean that there's less chance we forget if mypy...
I definitely see the logic in that, but I also expect that a change like this would break quite a lot. An exploratory PR to judge the impact would be...
Ah I see. The original commit indeed has lots of problems. Normally that script generates acceptable stubs, but not in this case, unfortunately. So please ignore my comment above. But...
I'm fine with everything that brings typeshed closer to the implementation. But please note that generics are expected to work with `collections.abc` with all Python versions in stubs or when...
The stricter typing for `get()` will catch potential type problems. While your example will work at runtime, it indicates a likely bug as `None` is not a valid key. I...
I don't think that this is the way forward. Type checkers are supposed to check that the types are correct after all. If you don't know types or are not...