Adding linting to a prefect project and it looks l...
# prefect-server
h
Adding linting to a prefect project and it looks like we're getting
E0611: No name 'task' in module 'prefect' (no-name-in-module)
with pylint - has anyone run into this before?
s
My initial intuition is a name collision; do you have any folders named
prefect
or files named
prefect.py
?
h
hmmm, interesting - haven't had that issue before
s
In Python, files and folders both are modules. It's a nice thing (
import mylibraryeasily
) but it can be difficult if you name a file or folder the same as some builtin library you want to use. :)