-
Notifications
You must be signed in to change notification settings - Fork 270
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
Output may contain invalid import syntax when input file has leading ./ #47
Comments
Why is that stub invalid? You can totally do
(I know the |
(Also, if you're testing pytype right now, I should probably export a new version) |
Well, Also, yes I'm testing it, so would appreciate a new version. |
Oh, I thought those two dots meant "some other imports not relevant to this bug". Odd. I didn't even know pytype could generate relative imports. |
Could you attach your yo.py? Also, running an open-source export. It'll take a few hours (more if we hit a snag), we accumulated quite a few changes. |
Relative imports must use `from`, they can't use plain `import`. Thanks for
doing the export!
|
Ah, I missed that you're using Export is done - pytype is now the newest version. (Will now verify that typeshed's travis still works) |
I overlooked the detail of the leading `./` for a long time too! Thanks for
the export, will try it tomorrow.
|
-- PiperOrigin-RevId: 159140256 MOS_MIGRATED_REVID=159140256
I have a module containing the line
and I invoke pytype as
Now the generated stub has invalid imports:
The text was updated successfully, but these errors were encountered: