{"action":"opened","issue":{"url":"https://api.github.com/repos/RikkiS0105/TomeRater-Codecademy-Project/issues/1","repository_url":"https://api.github.com/repos/RikkiS0105/TomeRater-Codecademy-Project","labels_url":"https://api.github.com/repos/RikkiS0105/TomeRater-Codecademy-Project/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/RikkiS0105/TomeRater-Codecademy-Project/issues/1/comments","events_url":"https://api.github.com/repos/RikkiS0105/TomeRater-Codecademy-Project/issues/1/events","html_url":"https://github.com/RikkiS0105/TomeRater-Codecademy-Project/issues/1","id":352750929,"node_id":"MDU6SXNzdWUzNTI3NTA5Mjk=","number":1,"title":"Error thrown - did not include self inheritance when defining function","user":{"login":"driskerr","id":7308323,"node_id":"MDQ6VXNlcjczMDgzMjM=","avatar_url":"https://avatars0.githubusercontent.com/u/7308323?v=4","gravatar_id":"","url":"https://api.github.com/users/driskerr","html_url":"https://github.com/driskerr","followers_url":"https://api.github.com/users/driskerr/followers","following_url":"https://api.github.com/users/driskerr/following{/other_user}","gists_url":"https://api.github.com/users/driskerr/gists{/gist_id}","starred_url":"https://api.github.com/users/driskerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskerr/subscriptions","organizations_url":"https://api.github.com/users/driskerr/orgs","repos_url":"https://api.github.com/users/driskerr/repos","events_url":"https://api.github.com/users/driskerr/events{/privacy}","received_events_url":"https://api.github.com/users/driskerr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T23:50:32Z","updated_at":"2018-08-21T23:50:32Z","closed_at":null,"author_association":"NONE","body":"https://github.com/RikkiS0105/TomeRater-Codecademy-Project/blob/204daa9545c753453c1f52deb8b2e84331eaf90c/TomeRater%20Submit.py#L132\r\n\r\nAn error is thrown by this line. The issue has to do with the failure to include class inheritance when defining the function.\r\n\r\nThe error message was:\r\n```\r\n    book1 = Tome_Rater.create_book(\"Society of Mind\", 12345678)\r\nTypeError: create_book() takes 2 positional arguments but 3 were given\r\n```\r\nYou can fix this by including `self` before defining the arguments, like so:\r\n`def create_book(self, title, isbn): `\r\n\r\nYou can read more about class inheritance [here](https://www.codecademy.com/articles/glossary-python#class)."}}
{"actor":{"display_login":"driskerr"}}