Repository navigation
Fix Python 3.12 compatibility - #6965
Conversation
|
I've reported the issue in CPython upstream: python/cpython#106614 |
|
Thanks @frenzymadness for looking into this. Looks like the lint failure might be relevant (Python 3.11 is used in the workflow). |
|
I'm not sure what to do here and I'm at EuroPython now so I don't have much time to look into it. The problem is that documentation says that |
|
Since it's just the The tests seem to be passing on |
|
Also maybe we could start testing on Python 3.12 on CI too? (and add it to the matrix) |
|
This is not really a big deal so if you are okay with skipping the check, so I am. I dug a little bit deeper and opened one more issue for importlib.resources where a change in typing might fix the problem here: python/importlib_resources#286 |
|
I guess it would be fine yes, also this line is only for the tests. |
dd5764c to
4ddad5a
Compare
|
Rebased and added a comment to ignore the typing issue. |
|
Should we also try adding |
Good idea but the configuration is kinda complex so I'm not sure I'm able to do it properly. |
.joinpath with an empty argument no longer works as before thanks to this change in CPython: python/cpython@cea910e#diff-2e741d925220d74a9cc04cda1314d3649d9d189c0efc7db18e5387a51225b61c This change mimics the old internal behavior by using _paths attribute directly.
|
Sure, I'll have a look in a separate PR: #6999 |
.joinpath with an empty argument no longer works as before thanks to this change in CPython: python/cpython@cea910e#diff-2e741d925220d74a9cc04cda1314d3649d9d189c0efc7db18e5387a51225b61c
This change mimics the old internal behavior by using _paths attribute directly.
I'm not saying it's perfect but it's the shortest solution I was able to come up with when building notebook 7rc2 with Python 3.12 in Fedora rawhide.