Skip to content

Commit a249c47

Browse files
committed
adafruit_itertools_extra: Fix import
The import statement incorrectly referred to the package, not the submodule, leading to the reported traceback Testing performed: the user's testcase, ``` >>> from adafruit_itertools.adafruit_itertools import count >>> from adafruit_itertools.adafruit_itertools_extras import take >>> take(1, count(1, 5)) [1] ``` Closes: #3
1 parent 7a8d752 commit a249c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_itertools/adafruit_itertools_extras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
#pylint:disable=invalid-name,deprecated-lambda,keyword-arg-before-vararg
7878

79-
import adafruit_itertools as it
79+
from . import adafruit_itertools as it
8080

8181
__version__ = "0.0.0-auto.0"
8282
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Itertools.git"

0 commit comments

Comments
 (0)