Files
typeshed/stdlib/3
Daniel Watkins 85a788dbca multiprocessing Pool (and context manager) fixes/improvements (#1562)
* Use typing.ContextManager for multiprocessing context managers

Prior to this commit, the types for __enter__ and __exit__ were not
fully defined; this addresses that.

* Move Pool class stub to multiprocessing.pool

This is where the class is actually defined in the stdlib.

* Ensure that __enter__ on Pool subclasses returns the subclass

This ensures that:

```py
class MyPool(Pool):
    def my_method(self): pass

with MyPool() as pool:
    pool.my_method()
```

type-checks correctly.

* Update the signature of BaseContext.Pool to match Pool.__init__

* Restore multiprocessing.Pool as a function

And also add comments to note that it should have an identical signature
to multiprocessing.context.BaseContext.Pool (because it is just that
method partially applied).
2017-08-28 21:19:08 -07:00
..
2017-07-26 08:29:30 -07:00
2017-08-21 13:54:22 -07:00
2017-05-23 09:51:29 -07:00
2017-04-24 15:31:29 -07:00
2016-12-19 23:53:19 -08:00
2017-04-24 15:04:42 -07:00
2017-01-26 12:05:53 -08:00
2016-12-21 01:15:26 -08:00
2017-06-02 12:53:38 -07:00
2017-04-24 15:31:29 -07:00
2017-04-27 08:48:22 -07:00
2017-04-30 14:16:30 -07:00
2016-12-20 00:47:51 -08:00
2016-12-20 00:16:44 -08:00
2017-05-24 14:09:52 -07:00
2017-05-24 14:07:31 -07:00
2017-04-24 14:57:26 -07:00
2016-02-25 09:41:32 +00:00
2016-12-19 22:09:35 -08:00
2017-05-31 12:07:21 -07:00
2017-03-23 08:26:45 -07:00
2017-08-21 13:54:55 -07:00