Is your feature request related to a problem?
Currently, if a module imports classes from other packages stubs won't be created for those classes.
Say we are creating stubs for the package a and are currently working on a Python module with the following content:
from b import SomeClass
def f(p: SomeClass)
Then we also need to create some stub for the class SomeClass, or we can't use it. So limited stubs must be created for the declarations of other packages that package a depends on.
Desired solution
Create limited stubs for the imported classes from other packages, if they are imported.