We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f263b78 + a55305e commit 0d88686Copy full SHA for 0d88686
tools/board_stubs/circuitpython_setboard/__init__.py
@@ -12,7 +12,12 @@
12
import shutil
13
from collections import defaultdict
14
from importlib import resources
15
-from importlib.abc import Traversable
+
16
+try:
17
+ from importlib.resources.abc import Traversable
18
+except ModuleNotFoundError:
19
+ # 3.10 and earlier.
20
+ from importlib.abc import Traversable
21
22
23
def get_definitions_or_exit(board: str) -> Traversable:
0 commit comments