New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sphinx 4.2.0 potential incompatibility with ElasticSearch #9971
Comments
Could you make a minimal reproducible example, please? It must be helpful to me. |
Sure thing, I will hopefully be able to do this in the new year, then I'll update you. Thanks for the offer |
Hi @tk0miya , I've created a mini project that reproduces the issue: I hope this helps and thanks again for reaching out |
Is anyone able to assist with this please? |
Sorry for the late. I'm looking this from now on. |
Note:
|
I posted #10183 to fix this bug. Thank you for reporting! |
Fix #9971: autodoc: TypeError for annotation with unhashable object
Describe the bug
Hi all,
My Python project uses:
Issues started when we updated Sphinx from 3.0.4 to 4.2.0.
Example:
Usage of Elastic's Nested object (
from elasticsearch_dsl import Nested
), results in the Sphinx error:TypeError: unhashable type: 'Nested'
Interestingly, Nested from the source code it looks like Nested does contain a hash method, however it's hardcoded to always return 0:
If there are further details I can provide, please let me know.
Hoping someone else has ran into this too, or if they can clarify if this is a Sphinx or Elastic issue.
Many thanks
How to Reproduce
My usage was as follows:
Expected behavior
Prior to the update, Sphinx would build as expected.
Your project
N/A, apologies for lacking detail though I am not permitted to share more source code
Screenshots
No response
OS
Linux
Python version
3.8
Sphinx version
4.2.0
Sphinx extensions
No response
Extra tools
ElasticSearch
Additional context
Elastic ticket:
elastic/elasticsearch-dsl-py#1552
The text was updated successfully, but these errors were encountered: