{"action":"created","issue":{"url":"https://api.github.com/repos/ambv/black/issues/219","repository_url":"https://api.github.com/repos/ambv/black","labels_url":"https://api.github.com/repos/ambv/black/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/ambv/black/issues/219/comments","events_url":"https://api.github.com/repos/ambv/black/issues/219/events","html_url":"https://github.com/ambv/black/pull/219","id":324119892,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg4ODExMjIz","number":219,"title":"Class new line between docstrings / vars / methods","user":{"login":"Sterbic","id":2404179,"node_id":"MDQ6VXNlcjI0MDQxNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/2404179?v=4","gravatar_id":"","url":"https://api.github.com/users/Sterbic","html_url":"https://github.com/Sterbic","followers_url":"https://api.github.com/users/Sterbic/followers","following_url":"https://api.github.com/users/Sterbic/following{/other_user}","gists_url":"https://api.github.com/users/Sterbic/gists{/gist_id}","starred_url":"https://api.github.com/users/Sterbic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sterbic/subscriptions","organizations_url":"https://api.github.com/users/Sterbic/orgs","repos_url":"https://api.github.com/users/Sterbic/repos","events_url":"https://api.github.com/users/Sterbic/events{/privacy}","received_events_url":"https://api.github.com/users/Sterbic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-17T17:39:34Z","updated_at":"2018-06-05T16:43:34Z","closed_at":"2018-05-29T06:48:59Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ambv/black/pulls/219","html_url":"https://github.com/ambv/black/pull/219","diff_url":"https://github.com/ambv/black/pull/219.diff","patch_url":"https://github.com/ambv/black/pull/219.patch"},"body":"Input:\r\n```\r\nclass ClassWithInit:\r\n    def __init__(self):\r\n        pass\r\n```\r\n\r\nCurrent output:\r\n```\r\nclass ClassWithInit:\r\n+\r\n    def __init__(self):\r\n        pass\r\n```\r\n\r\nDesired output:\r\n```\r\nclass ClassWithInit:\r\n    def __init__(self):\r\n        pass\r\n```\r\n\r\nInput:\r\n```\r\nclass ClassWithDocstring:\r\n    \"\"\"docstring\"\"\"\r\n    var = 10\r\n    def __init__(self):\r\n        pass\r\n```\r\n\r\nCurrent output:\r\n```\r\nclass ClassWithDocstring:\r\n    \"\"\"docstring\"\"\"\r\n    var = 10\r\n\r\n    def __init__(self):\r\n        pass\r\n```\r\n\r\nDesired output:\r\n```\r\nclass ClassWithDocstring:\r\n    \"\"\"docstring\"\"\"\r\n\r\n    var = 10\r\n\r\n    def __init__(self):\r\n        pass\r\n```"},"comment":{"url":"https://api.github.com/repos/ambv/black/issues/comments/394779506","html_url":"https://github.com/ambv/black/pull/219#issuecomment-394779506","issue_url":"https://api.github.com/repos/ambv/black/issues/219","id":394779506,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDc3OTUwNg==","user":{"login":"ambv","id":55281,"node_id":"MDQ6VXNlcjU1Mjgx","avatar_url":"https://avatars1.githubusercontent.com/u/55281?v=4","gravatar_id":"","url":"https://api.github.com/users/ambv","html_url":"https://github.com/ambv","followers_url":"https://api.github.com/users/ambv/followers","following_url":"https://api.github.com/users/ambv/following{/other_user}","gists_url":"https://api.github.com/users/ambv/gists{/gist_id}","starred_url":"https://api.github.com/users/ambv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambv/subscriptions","organizations_url":"https://api.github.com/users/ambv/orgs","repos_url":"https://api.github.com/users/ambv/repos","events_url":"https://api.github.com/users/ambv/events{/privacy}","received_events_url":"https://api.github.com/users/ambv/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T16:43:34Z","updated_at":"2018-06-05T16:43:34Z","author_association":"OWNER","body":"@renstrom, if you decide to deconstruct particular wording in PEP 8 and PEP 257, you might be technically right but I don't think that would be right in the spirit of those documents, they aren't written in a particularly strict style (pun not intended). The authors of those PEPs write code that looks like what Luka implemented in this PR. Previous behavior was very unpopular and a big criticism of Black for \"putting unnecessary empty lines\" between the first method and the class signature."}}
{"actor":{"display_login":"ambv"}}