elastic / elasticsearch-dsl-py

High level Python client for Elasticsearch
http://elasticsearch-dsl.readthedocs.org
Apache License 2.0
3.84k stars 802 forks source link

Fixed the the type hint for `Document.get()` #1910

Closed miguelgrinberg closed 2 months ago

miguelgrinberg commented 2 months ago

Fixes #1908

miguelgrinberg commented 2 months ago

Closing as this is actually incorrect. The client can be configured to ignore the 404 error, and in that case the get() method should return None.