{"action":"closed","issue":{"url":"https://api.github.com/repos/Stewori/pytypes/issues/49","repository_url":"https://api.github.com/repos/Stewori/pytypes","labels_url":"https://api.github.com/repos/Stewori/pytypes/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Stewori/pytypes/issues/49/comments","events_url":"https://api.github.com/repos/Stewori/pytypes/issues/49/events","html_url":"https://github.com/Stewori/pytypes/issues/49","id":327223779,"node_id":"MDU6SXNzdWUzMjcyMjM3Nzk=","number":49,"title":"Checking generators throws an error","user":{"login":"mitar","id":585279,"node_id":"MDQ6VXNlcjU4NTI3OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/585279?v=4","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-29T08:45:54Z","updated_at":"2018-06-20T16:06:30Z","closed_at":"2018-06-20T16:06:30Z","author_association":"CONTRIBUTOR","body":"```python\r\nfrom pytypes import type_util\r\nvalue = (i for i in range(10))\r\ntype_util._isinstance(value, int)\r\n```\r\n\r\nI would just assume it would be `False`, but it is:\r\n\r\n```\r\nTypeError: <code object <genexpr> at 0x7f5bc05418a0, file \"test.py\", line 2> is not a module, class, method, or function.\r\n```\r\n\r\nThis one is even trickier:\r\n\r\n```python\r\nfrom pytypes import type_util\r\n\r\nclass Foo:\r\n    def bar(self):\r\n        value = (i for i in range(10))\r\n        type_util._isinstance(value, int)\r\n\r\nFoo().bar()\r\n```"}}
{"actor":{"display_login":"Stewori"}}