Jeff Epler 41beca14af
only import a module if we use something from it
This prevents a bogus line such as `from types import ` from being
generated.

surprisingly this was not detected as a problem until a change
in isort! Formerly it would remove the bad line, but now it (correctly!)
errors
2022-12-13 16:04:07 -06:00
..
2021-08-11 23:14:58 -04:00
2022-02-15 12:36:26 -06:00
2021-03-15 19:27:36 +05:30
2022-09-30 11:18:13 -05:00
2022-09-28 18:09:24 -04:00
2021-05-06 16:22:35 +03:00
2022-09-28 10:06:33 -05:00
2022-02-15 12:36:26 -06:00
2022-03-11 16:04:12 -08:00
2021-04-19 22:22:44 -07:00
2021-03-15 19:27:36 +05:30
2022-08-30 15:23:44 -04:00
2021-03-15 19:27:36 +05:30
2021-04-19 22:22:44 -07:00
2022-02-15 12:36:26 -06:00
2022-02-15 12:36:26 -06:00
2022-02-15 12:36:26 -06:00
2021-03-15 19:27:36 +05:30
2021-10-15 08:20:54 -05:00
2021-04-19 22:22:44 -07:00
2022-02-15 12:36:26 -06:00