-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stubgen often generates incorrect imports #1782
Labels
Comments
Can you give a full, self-contained example where this happens? |
# stubtest/__init__.py # stubtest/a.py
from . import interfaces
class X(interfaces.Y):
pass # stubtest/interfaces.py
class Y:
pass
# out/stubtest/a.pyi
# Stubs for stubtest.a (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import interfaces
class X(interfaces.Y): ... |
stubgen doesn't |
If you have an idea on how to fix this, please submit a PR -- we'll gladly
review it!
|
Hmm… not sure that the reference above pinged anyone, so bump: #3704 |
I just checked and I think #3169 solved this |
Yes, it looks like this is fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In examples like the following:
Stubgen will often lose the
from x
, and simply generate an import like:The text was updated successfully, but these errors were encountered: