pytorch/tools/codegen
Sam Estep 4753100a3b Un-ignore F403 in .flake8 (#55838)
Summary:
Generally wildcard imports are bad for the reasons described here: https://www.flake8rules.com/rules/F403.html

This PR replaces wildcard imports with an explicit list of imported items where possible, and adds a `# noqa: F403` comment in the other cases (mostly re-exports in `__init__.py` files).

This is a prerequisite for https://github.com/pytorch/pytorch/issues/55816, because currently [`tools/codegen/dest/register_dispatch_key.py` simply fails if you sort its imports](https://github.com/pytorch/pytorch/actions/runs/742505908).

Pull Request resolved: https://github.com/pytorch/pytorch/pull/55838

Test Plan: CI. You can also run `flake8` locally.

Reviewed By: jbschlosser

Differential Revision: D27724232

Pulled By: samestep

fbshipit-source-id: 269fb09cb4168f8a51fd65bfaacc6cda7fb87c34
2021-04-13 09:24:07 -07:00
..
api Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
dest Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
selective_build Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
__init__.py Rewrite of ATen code generator (#42629) 2020-08-31 09:00:22 -07:00
code_template.py Rewrite of ATen code generator (#42629) 2020-08-31 09:00:22 -07:00
context.py Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
gen.py Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
local.py Remove use_c10_dispatcher option (#54969) 2021-03-31 16:24:24 -07:00
model.py Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
utils.py Split anonymous and namespaced definitions in RegisterDispatchKey (#51585) 2021-02-04 09:19:41 -08:00