-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cannot use types from user-defined package #29
Comments
Hm, can you double check that you're running this as you describe? I can't replicate this because for me, |
Oh that's right, I should have said to make |
Even with an empty |
This is interesting ... first off you're right I should fix my file locations / imports -- the ones above are not good and I didn't realize that. And here, I think, explains the differences we are seeing:
So I was mixing up Python3.3 and the Python3.4, but there may still be an issue with |
Gotcha, thanks. Still can't fully reproduce --- I still get an ImportError with python3.3.6 with the directory structure
when running Python from within |
Here are two files:
If you put these in a new folder
myfolder
(along with an emptymyfolder/__init__.py
file):python myfolder/b.py
runs fineretic myfolder/b.py
raises an error from line 25 oftypefinder.py
that the nameA
is not defined.Changing
->A
to->Dyn
makes the problem go away. Also, doingcd myfolder
and replacingfrom myfolder.a
withfrom a
fixes it.So the problem seems to be that imports from user packages are not available to the typechecker.
The text was updated successfully, but these errors were encountered: