Add TYPE_CHECKING clause from imports that are only necessary for type checking. This reduces runtime overhead by reducing the number of imports (#247)
In cellarium.ml.utilities.dataAny and Callable are imported outside of TYPE_CHECKING clause in order to avoid the parsing error by jsonargparse. This also incidentally fixes #193
Add from __future__ import annotations that string-ifies types. This is necessary to use with the above, otherwise runtime error if Python tries to evaluate types that were imported under TYPE_CHECKING clause
TYPE_CHECKING
clause from imports that are only necessary for type checking. This reduces runtime overhead by reducing the number of imports (#247)cellarium.ml.utilities.data
Any
andCallable
are imported outside ofTYPE_CHECKING
clause in order to avoid the parsing error by jsonargparse. This also incidentally fixes #193from __future__ import annotations
that string-ifies types. This is necessary to use with the above, otherwise runtime error if Python tries to evaluate types that were imported underTYPE_CHECKING
clausecellarium.ml.distributed
folderLog1p.__init__
method