In my stupidity, I didn't notice that it was not the class that was imported, but the file.
Solution: just import the class.