Let's pretend that I have this file called file1.py
:
from app1 import ClassX
class Class1:
pass
class Class2:
pass
If in another file called file2.py
I want to import Class1
and Class2
without explicit import this classes I usually need to use
from file1 import *
My problem is, when I do it I'm importing the ClassX
too, but I don't want to import the ClassX
and I don't to import Class1 and Class2 explicit.
There is some way to import only the classes that I really developed in File1
?