{"action":"created","issue":{"url":"https://api.github.com/repos/DamnWidget/anaconda/issues/218","labels_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/218/comments","events_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/218/events","html_url":"https://github.com/DamnWidget/anaconda/issues/218","id":43607524,"number":218,"title":"[bug] Re-defined functions and classes underlined incorrectly.","user":{"login":"pradyun","id":3275593,"avatar_url":"https://avatars.githubusercontent.com/u/3275593?v=3","gravatar_id":"","url":"https://api.github.com/users/pradyun","html_url":"https://github.com/pradyun","followers_url":"https://api.github.com/users/pradyun/followers","following_url":"https://api.github.com/users/pradyun/following{/other_user}","gists_url":"https://api.github.com/users/pradyun/gists{/gist_id}","starred_url":"https://api.github.com/users/pradyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradyun/subscriptions","organizations_url":"https://api.github.com/users/pradyun/orgs","repos_url":"https://api.github.com/users/pradyun/repos","events_url":"https://api.github.com/users/pradyun/events{/privacy}","received_events_url":"https://api.github.com/users/pradyun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DamnWidget/anaconda/labels/PyFlakes%2FPEP8","name":"PyFlakes/PEP8","color":"40aF50"},{"url":"https://api.github.com/repos/DamnWidget/anaconda/labels/PyLint","name":"PyLint","color":"8805e3"},{"url":"https://api.github.com/repos/DamnWidget/anaconda/labels/S%3A+minor","name":"S: minor","color":"ffc65f"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/DamnWidget/anaconda/milestones/4","labels_url":"https://api.github.com/repos/DamnWidget/anaconda/milestones/4/labels","id":839899,"number":4,"title":"v1.3.6","description":"AnacondaST3 version v1.3.6 that will include better support for auto import undefined symbols","creator":{"login":"DamnWidget","id":329766,"avatar_url":"https://avatars.githubusercontent.com/u/329766?v=3","gravatar_id":"","url":"https://api.github.com/users/DamnWidget","html_url":"https://github.com/DamnWidget","followers_url":"https://api.github.com/users/DamnWidget/followers","following_url":"https://api.github.com/users/DamnWidget/following{/other_user}","gists_url":"https://api.github.com/users/DamnWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/DamnWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamnWidget/subscriptions","organizations_url":"https://api.github.com/users/DamnWidget/orgs","repos_url":"https://api.github.com/users/DamnWidget/repos","events_url":"https://api.github.com/users/DamnWidget/events{/privacy}","received_events_url":"https://api.github.com/users/DamnWidget/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"closed","created_at":"2014-10-25T09:45:58Z","updated_at":"2015-01-20T12:24:04Z","due_on":null,"closed_at":"2015-01-20T12:24:04Z"},"comments":7,"created_at":"2014-09-23T09:22:57Z","updated_at":"2015-01-21T12:28:52Z","closed_at":"2015-01-17T16:52:48Z","body":"In the following snippet, there is a re-definition of `MyClass.function`. (In case that isn't obvious!)\r\n```\r\nclass MyClass(object):\r\n    def function(self):\r\n        pass\r\n\r\n    def function(self):\r\n        pass\r\n```\r\nAnaconda should mark `function` in the second definition. Instead it marks `def func` (off by 4)\r\nThe same is applicable for re-defined classes (except that it is off by 6 in that case).\r\n\r\nThe marking is off by 4/6 characters as it is not compensating for the `def `/`class `. So, just adding a 4/6 to the relevant place, possibly with a comment, should be enough to fix this issue."},"comment":{"url":"https://api.github.com/repos/DamnWidget/anaconda/issues/comments/70828402","html_url":"https://github.com/DamnWidget/anaconda/issues/218#issuecomment-70828402","issue_url":"https://api.github.com/repos/DamnWidget/anaconda/issues/218","id":70828402,"user":{"login":"pradyun","id":3275593,"avatar_url":"https://avatars.githubusercontent.com/u/3275593?v=3","gravatar_id":"","url":"https://api.github.com/users/pradyun","html_url":"https://github.com/pradyun","followers_url":"https://api.github.com/users/pradyun/followers","following_url":"https://api.github.com/users/pradyun/following{/other_user}","gists_url":"https://api.github.com/users/pradyun/gists{/gist_id}","starred_url":"https://api.github.com/users/pradyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradyun/subscriptions","organizations_url":"https://api.github.com/users/pradyun/orgs","repos_url":"https://api.github.com/users/pradyun/repos","events_url":"https://api.github.com/users/pradyun/events{/privacy}","received_events_url":"https://api.github.com/users/pradyun/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T12:28:52Z","updated_at":"2015-01-21T12:28:52Z","body":"You're welcome! :smile: "}}