mypy icon indicating copy to clipboard operation
mypy copied to clipboard

stubgen: multiple fixes to the generated imports

Open hamdanal opened this issue 2 years ago • 0 comments

  • Fix handling of nested imports. Instead of assuming that a name is imported from a top level package, look in the imports for this name starting from the parent submodule up until the import is found
  • Fix "from imports" getting reexported unnecessarily
  • Fix import sorting when having import aliases

Fixes #13661 Fixes #7006

hamdanal avatar Jul 08 '23 09:07 hamdanal