Commit c2142aa
committed
Add SynchronizedBase to __all__
Recently I was writing some heavily-parallel code,
and I tried to type-check with `mypy`. I (naively)
thought that `multiprocessing.Value` was a class
and was very confused when `mypy` threw an error
on that line. I dropped into the interpreter and
tried to use the `help` function to find the
return type of `Value` - and failed. I dropped
into the code and found that the type returned
from the `Value` function was not exported from
the module.
I want types in Python to be _awesome_. I think
`mypy` is a step in the right direction for that.
This change is me doing my part to expose more
types so `mypy` can become as good as it can be.
distortedsignal<distortedsignal@gmail.com>1 parent 625ecbe commit c2142aa
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- Lib/multiprocessing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments