Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing from __future__ import annotations #2808

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Oct 6, 2023

prevents failure to import dolfinx.mesh in Python 3.8 due to the use of tuple[...], which requires Python 3.9. Since this is in an annotation, deferring annotation evaluation via the annotations __future__ ought to work, as is done in some other files already.

This suggests that there aren't CI jobs to verify that dolfinx builds and then imports with Python 3.8, I think?

testing in conda-forge/fenics-dolfinx-feedstock#47 if you want to wait for that to confirm this is sufficient.

prevents failure to import in Python 3.8
@minrk
Copy link
Contributor Author

minrk commented Oct 6, 2023

fwiw, a local build with Python 3.8 for mac-arm worked fine with this patch. conda-forge/fenics-dolfinx-feedstock#47 may take an hour or two to finish.

@garth-wells garth-wells added the bug Something isn't working label Oct 6, 2023
@minrk
Copy link
Contributor Author

minrk commented Oct 6, 2023

conda-forge/fenics-dolfinx-feedstock#47 passed with this and #2810

@jhale jhale added this pull request to the merge queue Oct 6, 2023
Merged via the queue into FEniCS:main with commit 29a86c4 Oct 6, 2023
jhale pushed a commit that referenced this pull request Oct 10, 2023
prevents failure to import in Python 3.8

Co-authored-by: Garth N. Wells <gnw20@cam.ac.uk>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants