We have several places in our code where we cannot do proper type comparisons or type hinting because we have circular imports (usually with MelleaSession objects: see genslots). Additionally, once again mostly due to sessions, we almost always import the libraries for all backends (most annoyingly torch), even when only one backend is being used.