Open
Description
I've come across a number of docs tests that have unused imports, which can be confusing to clients and developers.
We should clean up unused imports and then prevent them from being added again.
@Manishearth suggested running docs tests with -D warnings
or a flag that causes the docs tests to fail if they have unused imports warnings.