{"action":"opened","issue":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2090","repository_url":"https://api.github.com/repos/The-Compiler/qutebrowser","labels_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2090/labels{/name}","comments_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2090/comments","events_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/2090/events","html_url":"https://github.com/The-Compiler/qutebrowser/issues/2090","id":187379787,"number":2090,"title":"Unions cannot be used with issubclass()","user":{"login":"blyxxyz","id":15526524,"avatar_url":"https://avatars.githubusercontent.com/u/15526524?v=3","gravatar_id":"","url":"https://api.github.com/users/blyxxyz","html_url":"https://github.com/blyxxyz","followers_url":"https://api.github.com/users/blyxxyz/followers","following_url":"https://api.github.com/users/blyxxyz/following{/other_user}","gists_url":"https://api.github.com/users/blyxxyz/gists{/gist_id}","starred_url":"https://api.github.com/users/blyxxyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blyxxyz/subscriptions","organizations_url":"https://api.github.com/users/blyxxyz/orgs","repos_url":"https://api.github.com/users/blyxxyz/repos","events_url":"https://api.github.com/users/blyxxyz/events{/privacy}","received_events_url":"https://api.github.com/users/blyxxyz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-04T16:31:59Z","updated_at":"2016-11-04T16:31:59Z","closed_at":null,"body":"The Python 3 version currently in Debian unstable (`3.5.2+`) rejects this in line 430 of `commands/command.py`:\r\n```python\r\n        elif issubclass(typ, typing.Union):\r\n            # this is... slightly evil, I know\r\n```\r\nIt gives a `TypeError` of `Unions cannot be used with issubclass().` because `typing.Union` can't be subclassed or instantiated.\r\n\r\nThe only working substitute I've found is importing `_Union` from the standard library module instead if it's available, but that doesn't seem like a good solution."}}
{"actor":{"display_login":"blyxxyz"}}