{"action":"created","comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/43243047","id":43243047,"diff_hunk":"@@ -158,3 +158,26 @@ def is_builtin_class_method(obj, attr_name):\n     if not hasattr(builtins, safe_getattr(cls, '__name__', '')):\n         return False\n     return getattr(builtins, safe_getattr(cls, '__name__', '')) is cls\n+\n+\n+def dumb_signature(functional_object):\n+    src = inspect.getsourcelines(functional_object)[0]\n+\n+    for i, l in enumerate(src):\n+        if 'def' in l:","path":"sphinx/util/inspect.py","position":10,"original_position":10,"commit_id":"0c1136c9c617f18c83535ee05cba3019440d2e47","original_commit_id":"0c1136c9c617f18c83535ee05cba3019440d2e47","user":{"login":"lehmannro","id":33013,"avatar_url":"https://avatars.githubusercontent.com/u/33013?v=3","gravatar_id":"","url":"https://api.github.com/users/lehmannro","html_url":"https://github.com/lehmannro","followers_url":"https://api.github.com/users/lehmannro/followers","following_url":"https://api.github.com/users/lehmannro/following{/other_user}","gists_url":"https://api.github.com/users/lehmannro/gists{/gist_id}","starred_url":"https://api.github.com/users/lehmannro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehmannro/subscriptions","organizations_url":"https://api.github.com/users/lehmannro/orgs","repos_url":"https://api.github.com/users/lehmannro/repos","events_url":"https://api.github.com/users/lehmannro/events{/privacy}","received_events_url":"https://api.github.com/users/lehmannro/received_events","type":"User","site_admin":false},"body":"Any decorator with `def` in the name will break this.","created_at":"2015-10-28T11:23:52Z","updated_at":"2015-10-28T11:23:52Z","html_url":"https://github.com/sphinx-doc/sphinx/pull/1882#discussion_r43243047","pull_request_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882","_links":{"self":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/43243047"},"html":{"href":"https://github.com/sphinx-doc/sphinx/pull/1882#discussion_r43243047"},"pull_request":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882"}}},"pull_request":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882","id":35022288,"html_url":"https://github.com/sphinx-doc/sphinx/pull/1882","diff_url":"https://github.com/sphinx-doc/sphinx/pull/1882.diff","patch_url":"https://github.com/sphinx-doc/sphinx/pull/1882.patch","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1882","number":1882,"state":"open","locked":false,"title":"Keeping original signatures for functions/methods","user":{"login":"hypnocat","id":12158649,"avatar_url":"https://avatars.githubusercontent.com/u/12158649?v=3","gravatar_id":"","url":"https://api.github.com/users/hypnocat","html_url":"https://github.com/hypnocat","followers_url":"https://api.github.com/users/hypnocat/followers","following_url":"https://api.github.com/users/hypnocat/following{/other_user}","gists_url":"https://api.github.com/users/hypnocat/gists{/gist_id}","starred_url":"https://api.github.com/users/hypnocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypnocat/subscriptions","organizations_url":"https://api.github.com/users/hypnocat/orgs","repos_url":"https://api.github.com/users/hypnocat/repos","events_url":"https://api.github.com/users/hypnocat/events{/privacy}","received_events_url":"https://api.github.com/users/hypnocat/received_events","type":"User","site_admin":false},"body":"Implements https://github.com/sphinx-doc/sphinx/issues/759\r\nMentioned in https://github.com/sphinx-doc/sphinx/issues/1859\r\n\r\nSometimes users need *exact* signatures, and do not want to\r\n[override function declaration in autodoc for sphinx](http://stackoverflow.com/questions/12082570/override-function-declaration-in-autodoc-for-sphinx)\r\nThis PR is first attempt to implement this feature.\r\n\r\n","created_at":"2015-05-08T16:02:56Z","updated_at":"2015-10-28T11:23:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d670c64ab55044023b33dce954d7a062627e80cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882/commits","review_comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882/comments","review_comment_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1882/comments","statuses_url":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/0c1136c9c617f18c83535ee05cba3019440d2e47","head":{"label":"hypnocat:master","ref":"master","sha":"0c1136c9c617f18c83535ee05cba3019440d2e47","user":{"login":"hypnocat","id":12158649,"avatar_url":"https://avatars.githubusercontent.com/u/12158649?v=3","gravatar_id":"","url":"https://api.github.com/users/hypnocat","html_url":"https://github.com/hypnocat","followers_url":"https://api.github.com/users/hypnocat/followers","following_url":"https://api.github.com/users/hypnocat/following{/other_user}","gists_url":"https://api.github.com/users/hypnocat/gists{/gist_id}","starred_url":"https://api.github.com/users/hypnocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypnocat/subscriptions","organizations_url":"https://api.github.com/users/hypnocat/orgs","repos_url":"https://api.github.com/users/hypnocat/repos","events_url":"https://api.github.com/users/hypnocat/events{/privacy}","received_events_url":"https://api.github.com/users/hypnocat/received_events","type":"User","site_admin":false},"repo":{"id":34749912,"name":"sphinx","full_name":"hypnocat/sphinx","owner":{"login":"hypnocat","id":12158649,"avatar_url":"https://avatars.githubusercontent.com/u/12158649?v=3","gravatar_id":"","url":"https://api.github.com/users/hypnocat","html_url":"https://github.com/hypnocat","followers_url":"https://api.github.com/users/hypnocat/followers","following_url":"https://api.github.com/users/hypnocat/following{/other_user}","gists_url":"https://api.github.com/users/hypnocat/gists{/gist_id}","starred_url":"https://api.github.com/users/hypnocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypnocat/subscriptions","organizations_url":"https://api.github.com/users/hypnocat/orgs","repos_url":"https://api.github.com/users/hypnocat/repos","events_url":"https://api.github.com/users/hypnocat/events{/privacy}","received_events_url":"https://api.github.com/users/hypnocat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hypnocat/sphinx","description":"Main repository for the Sphinx documentation builder","fork":true,"url":"https://api.github.com/repos/hypnocat/sphinx","forks_url":"https://api.github.com/repos/hypnocat/sphinx/forks","keys_url":"https://api.github.com/repos/hypnocat/sphinx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hypnocat/sphinx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hypnocat/sphinx/teams","hooks_url":"https://api.github.com/repos/hypnocat/sphinx/hooks","issue_events_url":"https://api.github.com/repos/hypnocat/sphinx/issues/events{/number}","events_url":"https://api.github.com/repos/hypnocat/sphinx/events","assignees_url":"https://api.github.com/repos/hypnocat/sphinx/assignees{/user}","branches_url":"https://api.github.com/repos/hypnocat/sphinx/branches{/branch}","tags_url":"https://api.github.com/repos/hypnocat/sphinx/tags","blobs_url":"https://api.github.com/repos/hypnocat/sphinx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hypnocat/sphinx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hypnocat/sphinx/git/refs{/sha}","trees_url":"https://api.github.com/repos/hypnocat/sphinx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hypnocat/sphinx/statuses/{sha}","languages_url":"https://api.github.com/repos/hypnocat/sphinx/languages","stargazers_url":"https://api.github.com/repos/hypnocat/sphinx/stargazers","contributors_url":"https://api.github.com/repos/hypnocat/sphinx/contributors","subscribers_url":"https://api.github.com/repos/hypnocat/sphinx/subscribers","subscription_url":"https://api.github.com/repos/hypnocat/sphinx/subscription","commits_url":"https://api.github.com/repos/hypnocat/sphinx/commits{/sha}","git_commits_url":"https://api.github.com/repos/hypnocat/sphinx/git/commits{/sha}","comments_url":"https://api.github.com/repos/hypnocat/sphinx/comments{/number}","issue_comment_url":"https://api.github.com/repos/hypnocat/sphinx/issues/comments{/number}","contents_url":"https://api.github.com/repos/hypnocat/sphinx/contents/{+path}","compare_url":"https://api.github.com/repos/hypnocat/sphinx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hypnocat/sphinx/merges","archive_url":"https://api.github.com/repos/hypnocat/sphinx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hypnocat/sphinx/downloads","issues_url":"https://api.github.com/repos/hypnocat/sphinx/issues{/number}","pulls_url":"https://api.github.com/repos/hypnocat/sphinx/pulls{/number}","milestones_url":"https://api.github.com/repos/hypnocat/sphinx/milestones{/number}","notifications_url":"https://api.github.com/repos/hypnocat/sphinx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hypnocat/sphinx/labels{/name}","releases_url":"https://api.github.com/repos/hypnocat/sphinx/releases{/id}","created_at":"2015-04-28T19:00:58Z","updated_at":"2015-04-29T17:19:19Z","pushed_at":"2015-04-29T17:19:19Z","git_url":"git://github.com/hypnocat/sphinx.git","ssh_url":"git@github.com:hypnocat/sphinx.git","clone_url":"https://github.com/hypnocat/sphinx.git","svn_url":"https://github.com/hypnocat/sphinx","homepage":"http://sphinx-doc.org","size":12769,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sphinx-doc:master","ref":"master","sha":"42f2b305791507e6bfe9507832daefc5071969cd","user":{"login":"sphinx-doc","id":9928167,"avatar_url":"https://avatars.githubusercontent.com/u/9928167?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinx-doc","html_url":"https://github.com/sphinx-doc","followers_url":"https://api.github.com/users/sphinx-doc/followers","following_url":"https://api.github.com/users/sphinx-doc/following{/other_user}","gists_url":"https://api.github.com/users/sphinx-doc/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinx-doc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinx-doc/subscriptions","organizations_url":"https://api.github.com/users/sphinx-doc/orgs","repos_url":"https://api.github.com/users/sphinx-doc/repos","events_url":"https://api.github.com/users/sphinx-doc/events{/privacy}","received_events_url":"https://api.github.com/users/sphinx-doc/received_events","type":"Organization","site_admin":false},"repo":{"id":28710753,"name":"sphinx","full_name":"sphinx-doc/sphinx","owner":{"login":"sphinx-doc","id":9928167,"avatar_url":"https://avatars.githubusercontent.com/u/9928167?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinx-doc","html_url":"https://github.com/sphinx-doc","followers_url":"https://api.github.com/users/sphinx-doc/followers","following_url":"https://api.github.com/users/sphinx-doc/following{/other_user}","gists_url":"https://api.github.com/users/sphinx-doc/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinx-doc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinx-doc/subscriptions","organizations_url":"https://api.github.com/users/sphinx-doc/orgs","repos_url":"https://api.github.com/users/sphinx-doc/repos","events_url":"https://api.github.com/users/sphinx-doc/events{/privacy}","received_events_url":"https://api.github.com/users/sphinx-doc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sphinx-doc/sphinx","description":"Main repository for the Sphinx documentation builder","fork":false,"url":"https://api.github.com/repos/sphinx-doc/sphinx","forks_url":"https://api.github.com/repos/sphinx-doc/sphinx/forks","keys_url":"https://api.github.com/repos/sphinx-doc/sphinx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sphinx-doc/sphinx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sphinx-doc/sphinx/teams","hooks_url":"https://api.github.com/repos/sphinx-doc/sphinx/hooks","issue_events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/events{/number}","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/events","assignees_url":"https://api.github.com/repos/sphinx-doc/sphinx/assignees{/user}","branches_url":"https://api.github.com/repos/sphinx-doc/sphinx/branches{/branch}","tags_url":"https://api.github.com/repos/sphinx-doc/sphinx/tags","blobs_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/refs{/sha}","trees_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/{sha}","languages_url":"https://api.github.com/repos/sphinx-doc/sphinx/languages","stargazers_url":"https://api.github.com/repos/sphinx-doc/sphinx/stargazers","contributors_url":"https://api.github.com/repos/sphinx-doc/sphinx/contributors","subscribers_url":"https://api.github.com/repos/sphinx-doc/sphinx/subscribers","subscription_url":"https://api.github.com/repos/sphinx-doc/sphinx/subscription","commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/commits{/sha}","git_commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/commits{/sha}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/comments{/number}","issue_comment_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments{/number}","contents_url":"https://api.github.com/repos/sphinx-doc/sphinx/contents/{+path}","compare_url":"https://api.github.com/repos/sphinx-doc/sphinx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sphinx-doc/sphinx/merges","archive_url":"https://api.github.com/repos/sphinx-doc/sphinx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sphinx-doc/sphinx/downloads","issues_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues{/number}","pulls_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls{/number}","milestones_url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones{/number}","notifications_url":"https://api.github.com/repos/sphinx-doc/sphinx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/labels{/name}","releases_url":"https://api.github.com/repos/sphinx-doc/sphinx/releases{/id}","created_at":"2015-01-02T10:53:28Z","updated_at":"2015-10-28T00:41:18Z","pushed_at":"2015-10-27T13:56:40Z","git_url":"git://github.com/sphinx-doc/sphinx.git","ssh_url":"git@github.com:sphinx-doc/sphinx.git","clone_url":"https://github.com/sphinx-doc/sphinx.git","svn_url":"https://github.com/sphinx-doc/sphinx","homepage":"http://sphinx-doc.org","size":19345,"stargazers_count":399,"watchers_count":399,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":209,"mirror_url":null,"open_issues_count":545,"forks":209,"open_issues":545,"watchers":399,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882"},"html":{"href":"https://github.com/sphinx-doc/sphinx/pull/1882"},"issue":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1882"},"comments":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1882/comments"},"review_comments":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882/comments"},"review_comment":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/1882/commits"},"statuses":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/0c1136c9c617f18c83535ee05cba3019440d2e47"}}}}