{"action":"opened","issue":{"url":"https://api.github.com/repos/PyCQA/pylint/issues/1191","repository_url":"https://api.github.com/repos/PyCQA/pylint","labels_url":"https://api.github.com/repos/PyCQA/pylint/issues/1191/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/pylint/issues/1191/comments","events_url":"https://api.github.com/repos/PyCQA/pylint/issues/1191/events","html_url":"https://github.com/PyCQA/pylint/issues/1191","id":193353902,"number":1191,"title":"disabling too-many-arguments in-line when parent class is specified still produces warning","user":{"login":"plannigan","id":18636401,"avatar_url":"https://avatars.githubusercontent.com/u/18636401?v=3","gravatar_id":"","url":"https://api.github.com/users/plannigan","html_url":"https://github.com/plannigan","followers_url":"https://api.github.com/users/plannigan/followers","following_url":"https://api.github.com/users/plannigan/following{/other_user}","gists_url":"https://api.github.com/users/plannigan/gists{/gist_id}","starred_url":"https://api.github.com/users/plannigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plannigan/subscriptions","organizations_url":"https://api.github.com/users/plannigan/orgs","repos_url":"https://api.github.com/users/plannigan/repos","events_url":"https://api.github.com/users/plannigan/events{/privacy}","received_events_url":"https://api.github.com/users/plannigan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T14:32:21Z","updated_at":"2016-12-04T14:32:21Z","closed_at":null,"body":"If the parent class is explicitly specified, when using an inline comment to disable `too-many-arguments`, the issue is still reported. It does not matter if the parent class is `object` or a class defined in the file. `too-many-arguments` is reported as being disabled, but the warning is still displayed.\r\n\r\n### Steps to reproduce\r\n```\r\n# pylint: disable=missing-docstring,too-few-public-methods\r\n\r\nclass NoParentClass:  # pylint: disable=too-many-arguments\r\n    def __init__(self, arg_1, arg_2, arg_3, arg_4, arg_5, arg_6):\r\n        self.arg_1 = arg_1\r\n        self.arg_2 = arg_2\r\n        self.arg_3 = arg_3\r\n        self.arg_4 = arg_4\r\n        self.arg_5 = arg_5\r\n        self.arg_6 = arg_6\r\n\r\n\r\nclass ChildOfObject(object):  # pylint: disable=too-many-arguments\r\n    def __init__(self, arg_1, arg_2, arg_3, arg_4, arg_5, arg_6):\r\n        self.arg_1 = arg_1\r\n        self.arg_2 = arg_2\r\n        self.arg_3 = arg_3\r\n        self.arg_4 = arg_4\r\n        self.arg_5 = arg_5\r\n        self.arg_6 = arg_6\r\n\r\n\r\nclass Base:\r\n    pass\r\n\r\n\r\nclass ChildOfBass(Base):  # pylint: disable=too-many-arguments\r\n    def __init__(self, arg_1, arg_2, arg_3, arg_4, arg_5, arg_6):\r\n        self.arg_1 = arg_1\r\n        self.arg_2 = arg_2\r\n        self.arg_3 = arg_3\r\n        self.arg_4 = arg_4\r\n        self.arg_5 = arg_5\r\n        self.arg_6 = arg_6\r\n```\r\n\r\n### Current behavior\r\n```\r\nNo config file found, using default configuration\r\n************* Module too_many_arguments\r\nI:  1, 0: Locally disabling missing-docstring (C0111) (locally-disabled)\r\nI:  1, 0: Locally disabling too-few-public-methods (R0903) (locally-disabled)\r\nI:  3, 0: Locally disabling too-many-arguments (R0913) (locally-disabled)\r\nI: 13, 0: Locally disabling too-many-arguments (R0913) (locally-disabled)\r\nI: 27, 0: Locally disabling too-many-arguments (R0913) (locally-disabled)\r\nR: 14, 4: Too many arguments (7/5) (too-many-arguments)\r\nR: 28, 4: Too many arguments (7/5) (too-many-arguments)\r\n```\r\n\r\n### Expected behavior\r\n`too-many-arguments` is disabled for the scope of the class in all cases and no warnings are displayed.\r\n\r\n### pylint --version output\r\n```\r\npylint --version\r\nNo config file found, using default configuration\r\npylint 1.6.4, \r\nastroid 1.4.8\r\nPython 3.5.1 (default, Feb  7 2016, 15:03:27) \r\n[GCC 4.8.4]\r\n```\r\n"}}
{"actor":{"display_login":"plannigan"}}