{"action":"created","issue":{"url":"https://api.github.com/repos/paver/paver/issues/170","repository_url":"https://api.github.com/repos/paver/paver","labels_url":"https://api.github.com/repos/paver/paver/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/paver/paver/issues/170/comments","events_url":"https://api.github.com/repos/paver/paver/issues/170/events","html_url":"https://github.com/paver/paver/pull/170","id":170849426,"number":170,"title":"Don't crash on tasks with annotations","user":{"login":"jstasiak","id":36209,"avatar_url":"https://avatars.githubusercontent.com/u/36209?v=3","gravatar_id":"","url":"https://api.github.com/users/jstasiak","html_url":"https://github.com/jstasiak","followers_url":"https://api.github.com/users/jstasiak/followers","following_url":"https://api.github.com/users/jstasiak/following{/other_user}","gists_url":"https://api.github.com/users/jstasiak/gists{/gist_id}","starred_url":"https://api.github.com/users/jstasiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstasiak/subscriptions","organizations_url":"https://api.github.com/users/jstasiak/orgs","repos_url":"https://api.github.com/users/jstasiak/repos","events_url":"https://api.github.com/users/jstasiak/events{/privacy}","received_events_url":"https://api.github.com/users/jstasiak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T11:10:51Z","updated_at":"2016-08-15T12:36:21Z","closed_at":"2016-08-14T13:52:30Z","pull_request":{"url":"https://api.github.com/repos/paver/paver/pulls/170","html_url":"https://github.com/paver/paver/pull/170","diff_url":"https://github.com/paver/paver/pull/170.diff","patch_url":"https://github.com/paver/paver/pull/170.patch"},"body":"We've been adding type hints to our Python code for a while now, we'd\r\nalso like to annotate functions in pavement files but we can't currently.\r\n\r\nLet's have a sample pavement file:\r\n\r\n    from paver.easy import task\r\n\r\n    @task\r\n    def say_hello() -> None:\r\n        print('hello')\r\n\r\nBefore this patch running \"paver say_hello\" would result in:\r\n\r\n    % paver say_hello\r\n    Traceback (most recent call last):\r\n      (...)\r\n      File \"/Volumes/smarkets/paver/paver/__main__.py\", line 2, in <module>\r\n        paver.tasks.main()\r\n      File \"/Volumes/smarkets/paver/paver/tasks.py\", line 886, in main\r\n        _launch_pavement(args)\r\n      File \"/Volumes/smarkets/paver/paver/tasks.py\", line 866, in _launch_pavement\r\n        _process_commands(args, auto_pending=auto_pending)\r\n      File \"/Volumes/smarkets/paver/paver/tasks.py\", line 817, in _process_commands\r\n        task()\r\n      File \"/Volumes/smarkets/paver/paver/tasks.py\", line 329, in __call__\r\n        retval = environment._run_task(self.name, self.needs, self.func)\r\n      File \"/Volumes/smarkets/paver/paver/tasks.py\", line 159, in _run_task\r\n        (funcargs, varargs, varkw, defaults) = inspect.getargspec(func)\r\n      File \"/usr/local/Cellar/python3/3.5.2/Frameworks/Python.framework/Versions/3.5/lib/python3.5/inspect.py\", line 1045, in getargspec\r\n        raise ValueError(\"Function has keyword-only arguments or annotations\"\r\n    ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them"},"comment":{"url":"https://api.github.com/repos/paver/paver/issues/comments/239791547","html_url":"https://github.com/paver/paver/pull/170#issuecomment-239791547","issue_url":"https://api.github.com/repos/paver/paver/issues/170","id":239791547,"user":{"login":"Almad","id":44565,"avatar_url":"https://avatars.githubusercontent.com/u/44565?v=3","gravatar_id":"","url":"https://api.github.com/users/Almad","html_url":"https://github.com/Almad","followers_url":"https://api.github.com/users/Almad/followers","following_url":"https://api.github.com/users/Almad/following{/other_user}","gists_url":"https://api.github.com/users/Almad/gists{/gist_id}","starred_url":"https://api.github.com/users/Almad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Almad/subscriptions","organizations_url":"https://api.github.com/users/Almad/orgs","repos_url":"https://api.github.com/users/Almad/repos","events_url":"https://api.github.com/users/Almad/events{/privacy}","received_events_url":"https://api.github.com/users/Almad/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T12:36:21Z","updated_at":"2016-08-15T12:36:21Z","body":"@jstasiak Would love to, but I'd _really_ love to migrate to RTD with docs, and I am currently a bit stuck with properly setting the pipeline :( \r\n\r\nHelp welcome (over at #167 ) "}}
{"actor":{"display_login":"Almad"}}