templates/samplefactory: move type checking only import to special block

Don't import things we don't actually need at runtime
pull/12044/head
Dylan Baker 2 years ago committed by Eli Schwartz
parent b0cd88ceae
commit 3fdc877e8a
  1. 2
      mesonbuild/templates/samplefactory.py

@ -26,10 +26,10 @@ from mesonbuild.templates.objctemplates import ObjCProject
from mesonbuild.templates.cpptemplates import CppProject from mesonbuild.templates.cpptemplates import CppProject
from mesonbuild.templates.cstemplates import CSharpProject from mesonbuild.templates.cstemplates import CSharpProject
from mesonbuild.templates.ctemplates import CProject from mesonbuild.templates.ctemplates import CProject
from mesonbuild.templates.sampleimpl import SampleImpl
if T.TYPE_CHECKING: if T.TYPE_CHECKING:
from ..minit import Arguments from ..minit import Arguments
from .sampleimpl import SampleImpl
def sameple_generator(options: Arguments) -> SampleImpl: def sameple_generator(options: Arguments) -> SampleImpl:

Loading…
Cancel
Save