-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Weird import conflict with xarray and typing-extensions on Python 3.8 #99
Comments
To give a bit more info about how the NameError occurs from current https://github.com/samuelcolvin/dirty-equals/blob/2c85486b29492977f82c850eadf1afc0e2a9434e/dirty_equals/_sequence.py:
But this line 215 in between: dirty-equals/dirty_equals/_sequence.py Line 215 in 2c85486
seems to trigger an instantiation of |
This might actually just be a bug/regression in typing-extensions as noted in python/typing_extensions#425 |
This issue seems to be resolved with recent typing-extensions 4.12.2 release. |
One of our CI builds suddenly started failing with this stack trace:
After some rabbit hole crawling I could zoom in on a minimal reproduction procedure.
The problem started with the release of typing-extensions 4.12.1 (June 1st, 2024) and happens when
xarray
is imported beforedirty_equals
.Example in a fresh
docker run --rm -it python:3.8 /bin/bash
container:Possible workarounds:
typing-extensions<4.12.1
The text was updated successfully, but these errors were encountered: