{"action":"opened","issue":{"url":"https://api.github.com/repos/PyCQA/pylint/issues/961","repository_url":"https://api.github.com/repos/PyCQA/pylint","labels_url":"https://api.github.com/repos/PyCQA/pylint/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/pylint/issues/961/comments","events_url":"https://api.github.com/repos/PyCQA/pylint/issues/961/events","html_url":"https://github.com/PyCQA/pylint/issues/961","id":162722539,"number":961,"title":"Instance of 'UUID' has no 'int' member (no-member)","user":{"login":"crbunney","id":4267911,"avatar_url":"https://avatars.githubusercontent.com/u/4267911?v=3","gravatar_id":"","url":"https://api.github.com/users/crbunney","html_url":"https://github.com/crbunney","followers_url":"https://api.github.com/users/crbunney/followers","following_url":"https://api.github.com/users/crbunney/following{/other_user}","gists_url":"https://api.github.com/users/crbunney/gists{/gist_id}","starred_url":"https://api.github.com/users/crbunney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crbunney/subscriptions","organizations_url":"https://api.github.com/users/crbunney/orgs","repos_url":"https://api.github.com/users/crbunney/repos","events_url":"https://api.github.com/users/crbunney/events{/privacy}","received_events_url":"https://api.github.com/users/crbunney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-28T15:58:05Z","updated_at":"2016-06-28T15:58:05Z","closed_at":null,"body":"The UUID.int attribute exists as per the [docs](https://docs.python.org/2/library/uuid.html#uuid.UUID.int), but appears to be set dynamically in the UUID classes `__init__` (if I've been looking at the correct [code](https://github.com/python/cpython/blob/d034cd6b2fdb79f7fe3a8fbfe23b4ce8c7b44130/Lib/uuid.py#L184)):\r\n```python\r\nself.__dict__['int'] = int\r\n```\r\n\r\nThis seems to cause pylint to generate an Error message when it shouldn't\r\n\r\n### Steps to reproduce\r\nI created this test file:\r\n```python\r\nimport uuid\r\n\r\nu = uuid.UUID('{12345678-1234-5678-1234-567812345678}')\r\nprint u.int\r\n``` \r\nI ran this command on it: `pylint -r n --unsafe-load-any-extension y --errors-only test.py`\r\nThis output was generated:\r\n```\r\nNo config file found, using default configuration\r\n************* Module test\r\nE:  4, 6: Instance of 'UUID' has no 'int' member (no-member)\r\n```\r\n\r\n### Current behavior\r\nThe call to `u.int` is flagged as a potential missing member\r\n\r\n### Expected behavior\r\nNo error raised\r\n\r\n### pylint --version output\r\n```\r\nNo config file found, using default configuration\r\npylint 1.5.6,\r\nastroid 1.4.6\r\nPython 2.7.11 (default, Jan 22 2016, 08:29:18)\r\n[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]\r\n```\r\n\r\n### pip freeze\r\n```\r\nastroid==1.4.6\r\ncolorama==0.3.7\r\nlazy-object-proxy==1.2.2\r\npylint==1.5.6\r\nsix==1.10.0\r\nwrapt==1.10.8\r\n```\r\n"}}
{"actor":{"display_login":"crbunney"}}