WPS201 Found module with too many imports: 13 > 12 #701
Replies: 2 comments 2 replies
-
AFAIK, isort+black can take care of multiple imports from same module and we can easily ignore |
Beta Was this translation helpful? Give feedback.
-
This violation is related to the module complexity. Hiding complexity is not a solution. I think in such discussions, we need to copy-paste, or at least link the upstream reasoning/explanation. Copy from https://wemake-python-stylegui.de/en/latest/pages/usage/violations/complexity.html#wemake_python_styleguide.violations.complexity.TooManyImportsViolation. Although we could think about a solution similar to what the recent ansible-core typing proposal suggests — they want to agree on doing |
Beta Was this translation helpful? Give feedback.
-
In this case, majority of the imports are
from typing
(actions/_actions
).Is it possible to disregard the
from typing
imports? Or what might be another approach?Beta Was this translation helpful? Give feedback.
All reactions