Skip to content

Conversation

@mjpieters
Copy link
Contributor

  • When emitting a ImportFrom() node, assert that the list of names is not empty, and address all places where this potentially could happen.
  • Extend the input_types_generator/test_filtering_names test to include at least 1 enum so that it would trigger the assertion error if that enum is not included in the used inputs.

Fixes #308

- When emitting a `ImportFrom()` node, assert that the list of names
  is not empty, and address all places where this potentially could
  happen.
- Extend the `input_types_generator/test_filtering_names` test to
  include at least 1 enum so that it would trigger the assertion error
  if that enum is not included in the used inputs.
@mjpieters
Copy link
Contributor Author

Note that I expect there to be a few test failures until #334 and #335 have been addressed. I have a PR up for the second issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

include_all_inputs = false leads to IndexError in isort

1 participant