{"action":"created","issue":{"url":"https://api.github.com/repos/PyCQA/pep8/issues/454","labels_url":"https://api.github.com/repos/PyCQA/pep8/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/pep8/issues/454/comments","events_url":"https://api.github.com/repos/PyCQA/pep8/issues/454/events","html_url":"https://github.com/PyCQA/pep8/issues/454","id":113251218,"number":454,"title":"Exception when I start to write some docstrings.","user":{"login":"cganterh","id":5922460,"avatar_url":"https://avatars.githubusercontent.com/u/5922460?v=3","gravatar_id":"","url":"https://api.github.com/users/cganterh","html_url":"https://github.com/cganterh","followers_url":"https://api.github.com/users/cganterh/followers","following_url":"https://api.github.com/users/cganterh/following{/other_user}","gists_url":"https://api.github.com/users/cganterh/gists{/gist_id}","starred_url":"https://api.github.com/users/cganterh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cganterh/subscriptions","organizations_url":"https://api.github.com/users/cganterh/orgs","repos_url":"https://api.github.com/users/cganterh/repos","events_url":"https://api.github.com/users/cganterh/events{/privacy}","received_events_url":"https://api.github.com/users/cganterh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PyCQA/pep8/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/PyCQA/pep8/labels/incomplete","name":"incomplete","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-25T20:47:28Z","updated_at":"2015-12-30T08:49:05Z","closed_at":null,"body":"Hi, I'm using Atom with the linter-flake8 package and I'm getting this exception from pep8:\r\n\r\n    Error: Traceback (most recent call last):\r\n        File \"/usr/local/bin/flake8\", line 11, in sys.exit(main())\r\n        File \"/usr/local/lib/python3.5/dist-packages/flake8/main.py\", line 33, in main report = flake8_style.check_files()\r\n        File \"/usr/local/lib/python3.5/dist-packages/pep8.py\", line 1672, in check_files runner(path)\r\n        File \"/usr/local/lib/python3.5/dist-packages/flake8/engine.py\", line 95, in input_file return fchecker.check_all(expected=expected, line_offset=line_offset)\r\n        File \"/usr/local/lib/python3.5/dist-packages/pep8.py\", line 1456, in check_all self.check_logical()\r\n        File \"/usr/local/lib/python3.5/dist-packages/pep8.py\", line 1328, in check_logical (start_row, start_col) = mapping[0][1]\r\n    TypeError: 'NoneType' object is not subscriptable\r\n\r\nThis happens sometimes when I start writing a docstring such as:\r\n\r\n    def f():\r\n        \"\"\"\r\n\r\nIf you need more information just ask. (I was unsure what to include.)  \r\nThanks."},"comment":{"url":"https://api.github.com/repos/PyCQA/pep8/issues/comments/167959037","html_url":"https://github.com/PyCQA/pep8/issues/454#issuecomment-167959037","issue_url":"https://api.github.com/repos/PyCQA/pep8/issues/454","id":167959037,"user":{"login":"rewritten","id":476895,"avatar_url":"https://avatars.githubusercontent.com/u/476895?v=3","gravatar_id":"","url":"https://api.github.com/users/rewritten","html_url":"https://github.com/rewritten","followers_url":"https://api.github.com/users/rewritten/followers","following_url":"https://api.github.com/users/rewritten/following{/other_user}","gists_url":"https://api.github.com/users/rewritten/gists{/gist_id}","starred_url":"https://api.github.com/users/rewritten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rewritten/subscriptions","organizations_url":"https://api.github.com/users/rewritten/orgs","repos_url":"https://api.github.com/users/rewritten/repos","events_url":"https://api.github.com/users/rewritten/events{/privacy}","received_events_url":"https://api.github.com/users/rewritten/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T08:49:05Z","updated_at":"2015-12-30T08:49:05Z","body":"Same problem here, with more up-to-date version:\r\n```\r\n2.5.1 (pep8: 1.5.7, pyflakes: 1.0.0, mccabe: 0.3.1, radon: <property object at 0x10b5dc788>)\r\nCPython 2.7.10 on Darwin\r\n```\r\n"}}