Uh oh!
There was an error while loading. Please reload this page.
Add aliases for 'function classes' to multiprocessing - #5346
Conversation
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
I'm still not sure if we should do this. Even though lies in typeshed often result in problems, I think this is more of a "practicality beats purity" case, as being able to use
|
srittau
commented
May 6, 2021
I'm strongly opposed to introducing more lies, especially in this case. For example, IDEs will report wrong signatures and the following will not report an error, but will fail at runtime: frommultiprocessingimportQueueclassMyQueue(Queue): ...There are probably more problems with lying, and often these problems are subtle and hard to spot for someone not knowing what's going on. On the other hand, using |
Part of #4313