{"action":"closed","issue":{"url":"https://api.github.com/repos/keleshev/schema/issues/56","labels_url":"https://api.github.com/repos/keleshev/schema/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/keleshev/schema/issues/56/comments","events_url":"https://api.github.com/repos/keleshev/schema/issues/56/events","html_url":"https://github.com/keleshev/schema/issues/56","id":60044648,"number":56,"title":"doesn't work with operator.methodcaller","user":{"login":"hsharrison","id":4441865,"avatar_url":"https://avatars.githubusercontent.com/u/4441865?v=3","gravatar_id":"","url":"https://api.github.com/users/hsharrison","html_url":"https://github.com/hsharrison","followers_url":"https://api.github.com/users/hsharrison/followers","following_url":"https://api.github.com/users/hsharrison/following{/other_user}","gists_url":"https://api.github.com/users/hsharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/hsharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsharrison/subscriptions","organizations_url":"https://api.github.com/users/hsharrison/orgs","repos_url":"https://api.github.com/users/hsharrison/repos","events_url":"https://api.github.com/users/hsharrison/events{/privacy}","received_events_url":"https://api.github.com/users/hsharrison/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T01:19:28Z","updated_at":"2015-09-27T15:45:14Z","closed_at":"2015-09-27T15:45:14Z","body":"    from operator import methodcaller\r\n    from schema import Schema\r\n\r\n    f = methodcaller('endswith', '.csv')\r\n    assert f('test.csv')\r\n\r\n    Schema(f).validate('test.csv')\r\n\r\n    AttributeError: 'operator.methodcaller' object has no attribute '__name__'\r\n\r\nWe can't assume that all callables have a `__name__`, it would seem."}}