Akuli
Akuli
IMO stable shouldn't mean "will not receive bug fixes". I see this as a bug, not a feature. I *would* see it as a feature if many stubs relied on...
This seems reasonable. Basically, this type alias would be changed to `Any`: https://github.com/python/typeshed/blob/130a04905c0cab48604ac7be1f3d18ce96567c68/stdlib/tkinter/__init__.pyi#L181 The most common use cases for tkinter images are setting a window icon with `wm_iconphoto()` and displaying...
One more option would be to make a protocol that matches the `width`, `height` and `paste` methods of `PIL.ImageTk.PhotoImage`. Something like this: ```python class _PillowPhotoImage: def width(self) -> int: ......
Do you have real-world use cases for these changes, or is this just correctness for the sake of correctness? From a practical point of view, it makes sense for type...
Alright, this makes more sense to me now :)
I do not want issue templates to typeshed. One of my favorite things about typeshed is how little boilerplate our contributing process has. There is no CLA, no list of...
You want an error for `set[int] - set[str]`. Unfortunately there's no way to say "any type that overlaps with `_T`", and `_T | None` is an approximation of that to...
A user shipped code that did `set[bytes] - set[str]` to production, and of course, it didn't work as expected (#1840). There is no use case for `set[int] - set[str]`: if...
> `__isub__` Good point. In fact, the code from #1840 no longer errors as it should. Apparently this was broken in #7161. @AlexWaygood, what are your thoughts on this? >...
An intersection instance of `str` and `int` cannot exist, for example, because of the memory layout of `int` and `str` objects in CPython. They store different kinds of data in...