{"action":"closed","issue":{"url":"https://api.github.com/repos/python/mypy/issues/1935","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/1935/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/1935/comments","events_url":"https://api.github.com/repos/python/mypy/issues/1935/events","html_url":"https://github.com/python/mypy/issues/1935","id":167283619,"number":1935,"title":"Imports from other modules not detected in modules","user":{"login":"TRManderson","id":2503403,"avatar_url":"https://avatars.githubusercontent.com/u/2503403?v=3","gravatar_id":"","url":"https://api.github.com/users/TRManderson","html_url":"https://github.com/TRManderson","followers_url":"https://api.github.com/users/TRManderson/followers","following_url":"https://api.github.com/users/TRManderson/following{/other_user}","gists_url":"https://api.github.com/users/TRManderson/gists{/gist_id}","starred_url":"https://api.github.com/users/TRManderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TRManderson/subscriptions","organizations_url":"https://api.github.com/users/TRManderson/orgs","repos_url":"https://api.github.com/users/TRManderson/repos","events_url":"https://api.github.com/users/TRManderson/events{/privacy}","received_events_url":"https://api.github.com/users/TRManderson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python/mypy/labels/Import%20Cycle","name":"Import Cycle","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/python/mypy/milestones/2","html_url":"https://github.com/python/mypy/milestones/Future","labels_url":"https://api.github.com/repos/python/mypy/milestones/2/labels","id":1616625,"number":2,"title":"Future","description":"","creator":{"login":"ddfisher","id":245905,"avatar_url":"https://avatars.githubusercontent.com/u/245905?v=3","gravatar_id":"","url":"https://api.github.com/users/ddfisher","html_url":"https://github.com/ddfisher","followers_url":"https://api.github.com/users/ddfisher/followers","following_url":"https://api.github.com/users/ddfisher/following{/other_user}","gists_url":"https://api.github.com/users/ddfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/ddfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddfisher/subscriptions","organizations_url":"https://api.github.com/users/ddfisher/orgs","repos_url":"https://api.github.com/users/ddfisher/repos","events_url":"https://api.github.com/users/ddfisher/events{/privacy}","received_events_url":"https://api.github.com/users/ddfisher/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":7,"state":"open","created_at":"2016-03-01T23:14:37Z","updated_at":"2016-10-12T15:23:44Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-25T05:07:53Z","updated_at":"2016-10-12T15:23:44Z","closed_at":"2016-10-12T15:23:43Z","body":"Let's say there are three modules:\r\n\r\n`test/__init__.py`:\r\n```\r\nfrom test.a import A\r\nfrom test.b import B\r\n```\r\n\r\n`test/a.py`:\r\n```\r\nclass A: pass\r\n```\r\n\r\n`test/b.py`:\r\n```\r\nfrom test import A\r\nclass B: pass\r\n```\r\n\r\nUsing mypy 0.4.3 `mypy -p test` will report\r\n`test/b.py:1: error: Module has no attribute 'A'`"}}
{"actor":{"display_login":"gvanrossum"}}