Skip to content

Commit

Permalink
Fix importlib import
Browse files Browse the repository at this point in the history
On Python versions < 3.10 (I think I'm correct in saying this fails for 3.9), running `pytest` fails if using `importlib.resources` (see mu-editor/pup#35). This can be fixed by using `importlib_resources` instead (GitHub Actions testing should work now for all tested versions of Python).
  • Loading branch information
maximilianvz authored Feb 29, 2024
1 parent 0ec5168 commit 4d19a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomdb/periodic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import csv
import numpy as np

from importlib.resources import files
from importlib_resources import files

__all__ = ["sym2num", "name2num", "num2sym", "num2name", "Atom"]

Expand Down

0 comments on commit 4d19a48

Please sign in to comment.