Auto Complete Import issue

I have just noticed the following autocomplete entry running full Python 3 on the Server.
I think Line 6 is correct and does not throw any errors but does not have the same format as the other import statements. Is this statement correct?

welcome to python relative imports

here’s the python PEP on the issue https://www.python.org/dev/peps/pep-0328/#guido-s-decision

. indicates a relative import
so using
from . import FetchData
you are saying from the current package import the module FetchData
This does mean to call a function from FetchData you’d need to use
FetchData.my_function()

You may also want to do:
from .FetchData import *
or
from .FetchData import my_function

if you only need access to my_function.

1 Like

Ok I understand now, thank you for the clarification!