{"action":"opened","issue":{"url":"https://api.github.com/repos/lubieowoce/sumtype/issues/1","repository_url":"https://api.github.com/repos/lubieowoce/sumtype","labels_url":"https://api.github.com/repos/lubieowoce/sumtype/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lubieowoce/sumtype/issues/1/comments","events_url":"https://api.github.com/repos/lubieowoce/sumtype/issues/1/events","html_url":"https://github.com/lubieowoce/sumtype/issues/1","id":366695185,"node_id":"MDU6SXNzdWUzNjY2OTUxODU=","number":1,"title":"The syntax confuses the linter","user":{"login":"kkirka","id":10987782,"node_id":"MDQ6VXNlcjEwOTg3Nzgy","avatar_url":"https://avatars3.githubusercontent.com/u/10987782?v=4","gravatar_id":"","url":"https://api.github.com/users/kkirka","html_url":"https://github.com/kkirka","followers_url":"https://api.github.com/users/kkirka/followers","following_url":"https://api.github.com/users/kkirka/following{/other_user}","gists_url":"https://api.github.com/users/kkirka/gists{/gist_id}","starred_url":"https://api.github.com/users/kkirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkirka/subscriptions","organizations_url":"https://api.github.com/users/kkirka/orgs","repos_url":"https://api.github.com/users/kkirka/repos","events_url":"https://api.github.com/users/kkirka/events{/privacy}","received_events_url":"https://api.github.com/users/kkirka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-04T09:18:21Z","updated_at":"2018-10-04T09:18:21Z","closed_at":null,"author_association":"NONE","body":"What I need is rust-like enums in python, and your library really suits my needs. However, my linter is pretty much confused by the syntax you propose. I'm not sure whether one can work around this but I really don't want to put \"ignore\" comments every time I declare or use the ADTs.\r\n\r\nThe error messages are as follows:\r\n* \"Usually the first parameter of a method is called self\" — in a declaration if the alternative has some arguments,\r\n* \"Method must have a first parameter, usually called self\" — in a declaration if the alternative does not have any arguments,\r\n* \"Function 'X' does not return anything\" — when trying to instantiate an alternative.\r\n\r\nI use PyCharm 2017.2 but I believe other linters don't like the syntax as well."}}
{"actor":{"display_login":"kkirka"}}