{"action":"closed","issue":{"url":"https://api.github.com/repos/python/mypy/issues/2243","repository_url":"https://api.github.com/repos/python/mypy","labels_url":"https://api.github.com/repos/python/mypy/issues/2243/labels{/name}","comments_url":"https://api.github.com/repos/python/mypy/issues/2243/comments","events_url":"https://api.github.com/repos/python/mypy/issues/2243/events","html_url":"https://github.com/python/mypy/issues/2243","id":182657193,"number":2243,"title":"Types of class member variables are not checked","user":{"login":"kencoken","id":1108445,"avatar_url":"https://avatars.githubusercontent.com/u/1108445?v=3","gravatar_id":"","url":"https://api.github.com/users/kencoken","html_url":"https://github.com/kencoken","followers_url":"https://api.github.com/users/kencoken/followers","following_url":"https://api.github.com/users/kencoken/following{/other_user}","gists_url":"https://api.github.com/users/kencoken/gists{/gist_id}","starred_url":"https://api.github.com/users/kencoken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kencoken/subscriptions","organizations_url":"https://api.github.com/users/kencoken/orgs","repos_url":"https://api.github.com/users/kencoken/repos","events_url":"https://api.github.com/users/kencoken/events{/privacy}","received_events_url":"https://api.github.com/users/kencoken/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-12T23:14:17Z","updated_at":"2016-10-13T16:53:51Z","closed_at":"2016-10-13T16:53:51Z","body":"Running mypy on the following class, using Python 3.6 support (PEP 526):\r\n```\r\nclass TestClass:\r\n\r\n    a: str = 9\r\n\r\n    def __init__(self):\r\n\r\n        self.b: str = 8\r\n        self.b = 12\r\n\r\n    def test_method(self):\r\n        self.b = 50\r\n```\r\nResults in the following output:\r\n```\r\nanother_test.py: note: In class \"TestClass\":\r\nanother_test.py:3: error: Incompatible types in assignment (expression has type \"int\", variable has type \"str\")\r\n```\r\nIt seems as if the type of the member variable `b` is not checked."}}
{"actor":{"display_login":"gvanrossum"}}