{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1073","repository_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1073/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/1073/events","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/1073","id":384280729,"node_id":"MDU6SXNzdWUzODQyODA3Mjk=","number":1073,"title":"DeprecationWarning","user":{"login":"nicoulaj","id":3162,"node_id":"MDQ6VXNlcjMxNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/3162?v=4","gravatar_id":"","url":"https://api.github.com/users/nicoulaj","html_url":"https://github.com/nicoulaj","followers_url":"https://api.github.com/users/nicoulaj/followers","following_url":"https://api.github.com/users/nicoulaj/following{/other_user}","gists_url":"https://api.github.com/users/nicoulaj/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoulaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoulaj/subscriptions","organizations_url":"https://api.github.com/users/nicoulaj/orgs","repos_url":"https://api.github.com/users/nicoulaj/repos","events_url":"https://api.github.com/users/nicoulaj/events{/privacy}","received_events_url":"https://api.github.com/users/nicoulaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-26T11:08:45Z","updated_at":"2018-11-26T11:08:45Z","closed_at":null,"author_association":"NONE","body":"I get this warning on python 3.6.6 with elasticsearch-dsl 6.3.0:\r\n```\r\n.env/lib64/python3.6/site-packages/elasticsearch_dsl/utils.py:463: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.\r\n    if v in ([], {}, None):\r\n```"}}
{"actor":{"display_login":"nicoulaj"}}