{"action":"created","issue":{"url":"https://api.github.com/repos/pallets/click/issues/1128","repository_url":"https://api.github.com/repos/pallets/click","labels_url":"https://api.github.com/repos/pallets/click/issues/1128/labels{/name}","comments_url":"https://api.github.com/repos/pallets/click/issues/1128/comments","events_url":"https://api.github.com/repos/pallets/click/issues/1128/events","html_url":"https://github.com/pallets/click/issues/1128","id":365285382,"node_id":"MDU6SXNzdWUzNjUyODUzODI=","number":1128,"title":"TypeError: Arguments take exactly one parameter declaration, got 2","user":{"login":"Benjamin-Lee","id":13618205,"node_id":"MDQ6VXNlcjEzNjE4MjA1","avatar_url":"https://avatars2.githubusercontent.com/u/13618205?v=4","gravatar_id":"","url":"https://api.github.com/users/Benjamin-Lee","html_url":"https://github.com/Benjamin-Lee","followers_url":"https://api.github.com/users/Benjamin-Lee/followers","following_url":"https://api.github.com/users/Benjamin-Lee/following{/other_user}","gists_url":"https://api.github.com/users/Benjamin-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/Benjamin-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benjamin-Lee/subscriptions","organizations_url":"https://api.github.com/users/Benjamin-Lee/orgs","repos_url":"https://api.github.com/users/Benjamin-Lee/repos","events_url":"https://api.github.com/users/Benjamin-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/Benjamin-Lee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T01:59:18Z","updated_at":"2018-10-01T13:42:08Z","closed_at":"2018-10-01T13:13:01Z","author_association":"NONE","body":"Updating from Click 6 to 7 appears to break on this option:\r\n\r\n    @click.option(\"-o\", '--output', type=click.Path(exists=False, dir_okay=False), default=\"freqgen.html\", help=\"The path to the output HTML file. Defaults to freqgen.html.\")\r\n\r\nThe traceback is:\r\n\r\n```\r\nBenjamins-MacBook-Pro-5:examples BenjaminLee$ freqgen visualize --help\r\nTraceback (most recent call last):\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/bin/freqgen\", line 11, in <module>\r\n    load_entry_point('freqgen', 'console_scripts', 'freqgen')()\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 484, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 2714, in load_entry_point\r\n    return ep.load()\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 2332, in load\r\n    return self.resolve()\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 2338, in resolve\r\n    module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/freqgen/freqgen/cli.py\", line 23, in <module>\r\n    @click.option(\"-o\", '--output', type=click.Path(exists=False, dir_okay=False), help=\"The output YAML file.\")\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/click/decorators.py\", line 151, in decorator\r\n    _param_memo(f, ArgumentClass(param_decls, **attrs))\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/click/core.py\", line 1808, in __init__\r\n    Parameter.__init__(self, param_decls, required=required, **attrs)\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/click/core.py\", line 1338, in __init__\r\n    self._parse_decls(param_decls or (), expose_value)\r\n  File \"/Users/BenjaminLee/Desktop/Python/Research/freqgen/env/lib/python3.6/site-packages/click/core.py\", line 1841, in _parse_decls\r\n    'parameter declaration, got %d' % len(decls))\r\nTypeError: Arguments take exactly one parameter declaration, got 2\r\n```"},"comment":{"url":"https://api.github.com/repos/pallets/click/issues/comments/425911981","html_url":"https://github.com/pallets/click/issues/1128#issuecomment-425911981","issue_url":"https://api.github.com/repos/pallets/click/issues/1128","id":425911981,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTkxMTk4MQ==","user":{"login":"Benjamin-Lee","id":13618205,"node_id":"MDQ6VXNlcjEzNjE4MjA1","avatar_url":"https://avatars2.githubusercontent.com/u/13618205?v=4","gravatar_id":"","url":"https://api.github.com/users/Benjamin-Lee","html_url":"https://github.com/Benjamin-Lee","followers_url":"https://api.github.com/users/Benjamin-Lee/followers","following_url":"https://api.github.com/users/Benjamin-Lee/following{/other_user}","gists_url":"https://api.github.com/users/Benjamin-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/Benjamin-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benjamin-Lee/subscriptions","organizations_url":"https://api.github.com/users/Benjamin-Lee/orgs","repos_url":"https://api.github.com/users/Benjamin-Lee/repos","events_url":"https://api.github.com/users/Benjamin-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/Benjamin-Lee/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T13:42:08Z","updated_at":"2018-10-01T13:42:08Z","author_association":"NONE","body":"This error also seems to be happening here, also related to the upgrade from 6 to 7:\r\n\r\nhttps://github.com/tmux-python/tmuxp/issues/433"}}
{"actor":{"display_login":"Benjamin-Lee"}}