{"action":"opened","issue":{"url":"https://api.github.com/repos/dzanotelli/drypy/issues/14","repository_url":"https://api.github.com/repos/dzanotelli/drypy","labels_url":"https://api.github.com/repos/dzanotelli/drypy/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/dzanotelli/drypy/issues/14/comments","events_url":"https://api.github.com/repos/dzanotelli/drypy/issues/14/events","html_url":"https://github.com/dzanotelli/drypy/issues/14","id":372240389,"node_id":"MDU6SXNzdWUzNzIyNDAzODk=","number":14,"title":"Simplify the drypy decorators usage, preserve original data","user":{"login":"dzanotelli","id":7962937,"node_id":"MDQ6VXNlcjc5NjI5Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/7962937?v=4","gravatar_id":"","url":"https://api.github.com/users/dzanotelli","html_url":"https://github.com/dzanotelli","followers_url":"https://api.github.com/users/dzanotelli/followers","following_url":"https://api.github.com/users/dzanotelli/following{/other_user}","gists_url":"https://api.github.com/users/dzanotelli/gists{/gist_id}","starred_url":"https://api.github.com/users/dzanotelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzanotelli/subscriptions","organizations_url":"https://api.github.com/users/dzanotelli/orgs","repos_url":"https://api.github.com/users/dzanotelli/repos","events_url":"https://api.github.com/users/dzanotelli/events{/privacy}","received_events_url":"https://api.github.com/users/dzanotelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-20T18:38:22Z","updated_at":"2018-10-20T18:38:22Z","closed_at":null,"author_association":"OWNER","body":"The original idea of drypy was to use it in a behaviour similar to the \"property\" builtin decorator. Thus something like:\r\n``\r\n@sheriff\r\ndef foo():\r\n   pass\r\n\r\n@foo.deputy\r\ndef foo():\r\n   pass\r\n``\r\n\r\n- without calling the decorator (function decorator, not a class decorator)\r\n- without need to specify if the function is a method or not\r\n- using the same name for the sheriff and the deputy\r\n- preserving the info of the original function before decorations (basically, applying functools.wraps)"}}
{"actor":{"display_login":"dzanotelli"}}