Closed timrichardson closed 3 years ago
@timrichardson: Sorry for the delay. I don't know about your IDE, but running python3
from cachetools.keys import hashkey
does not show any errors for me.
cachetools.keys
is a separate sub-module and should be imported as such, mostly for future extensions.
__all__
is used for from cachetools import *
, and probably has nothing to do with your issue.
there is an example in the docs https://cachetools.readthedocs.io/en/stable/
but the import line
from cachetools.keys import hashkey
throws a linting error in my IDE.I am not very well versed in python modules, but I wonder if
__init__.py
should have "keys" in__all__
, which is currently: