@@ -246,7 +246,7 @@ class JacPlugin:
246246    @hookimpl  
247247    def  get_context () ->  ExecutionContext :
248248        """Get current execution context.""" 
249-         if  FastAPI .is_imported ():
249+         if  FastAPI .is_served ():
250250            return  JaseciContext .get ()
251251        return  JacFeatureDefaults .get_context ()
252252
@@ -259,7 +259,7 @@ def make_architype(
259259        on_exit : list [DSFunc ],
260260    ) ->  Type [Architype ]:
261261        """Create a new architype.""" 
262-         if  FastAPI .is_imported ():
262+         if  FastAPI .is_served ():
263263            for  i  in  on_entry  +  on_exit :
264264                i .resolve (cls )
265265            if  not  hasattr (cls , "_jac_entry_funcs_" ) or  not  hasattr (
@@ -306,7 +306,7 @@ def make_obj(
306306        on_entry : list [DSFunc ], on_exit : list [DSFunc ]
307307    ) ->  Callable [[type ], type ]:
308308        """Create a new architype.""" 
309-         if  FastAPI .is_imported ():
309+         if  FastAPI .is_served ():
310310
311311            def  decorator (cls : Type [Architype ]) ->  Type [Architype ]:
312312                """Decorate class.""" 
@@ -327,7 +327,7 @@ def make_node(
327327        on_entry : list [DSFunc ], on_exit : list [DSFunc ]
328328    ) ->  Callable [[type ], type ]:
329329        """Create a obj architype.""" 
330-         if  FastAPI .is_imported ():
330+         if  FastAPI .is_served ():
331331
332332            def  decorator (cls : Type [Architype ]) ->  Type [Architype ]:
333333                """Decorate class.""" 
@@ -345,7 +345,7 @@ def make_edge(
345345        on_entry : list [DSFunc ], on_exit : list [DSFunc ]
346346    ) ->  Callable [[type ], type ]:
347347        """Create a edge architype.""" 
348-         if  FastAPI .is_imported ():
348+         if  FastAPI .is_served ():
349349
350350            def  decorator (cls : Type [Architype ]) ->  Type [Architype ]:
351351                """Decorate class.""" 
@@ -363,7 +363,7 @@ def make_walker(
363363        on_entry : list [DSFunc ], on_exit : list [DSFunc ]
364364    ) ->  Callable [[type ], type ]:
365365        """Create a walker architype.""" 
366-         if  FastAPI .is_imported ():
366+         if  FastAPI .is_served ():
367367
368368            def  decorator (cls : Type [Architype ]) ->  Type [Architype ]:
369369                """Decorate class.""" 
@@ -383,7 +383,7 @@ def decorator(cls: Type[Architype]) -> Type[Architype]:
383383    @hookimpl  
384384    def  report (expr : Any ) ->  None :  # noqa:ANN401 
385385        """Jac's report stmt feature.""" 
386-         if  FastAPI .is_imported ():
386+         if  FastAPI .is_served ():
387387            JaseciContext .get ().reports .append (expr )
388388            return 
389389        JacFeatureDefaults .report (expr = expr )
@@ -392,15 +392,15 @@ def report(expr: Any) -> None:  # noqa:ANN401
392392    @hookimpl  
393393    def  get_root () ->  Root :
394394        """Jac's assign comprehension feature.""" 
395-         if  FastAPI .is_imported ():
395+         if  FastAPI .is_served ():
396396            return  JaseciContext .get_root ()
397397        return  JacFeatureDefaults .get_root ()  # type:ignore[return-value] 
398398
399399    @staticmethod  
400400    @hookimpl  
401401    def  get_root_type () ->  Type [Root ]:
402402        """Jac's root getter.""" 
403-         if  FastAPI .is_imported ():
403+         if  FastAPI .is_served ():
404404            return  Root 
405405        return  JacFeatureDefaults .get_root_type ()  # type:ignore[return-value] 
406406
@@ -412,7 +412,7 @@ def build_edge(
412412        conn_assign : tuple [tuple , tuple ] |  None ,
413413    ) ->  Callable [[NodeAnchor , NodeAnchor ], EdgeArchitype ]:
414414        """Jac's root getter.""" 
415-         if  FastAPI .is_imported ():
415+         if  FastAPI .is_served ():
416416            conn_type  =  conn_type  if  conn_type  else  GenericEdge 
417417
418418            def  builder (source : NodeAnchor , target : NodeAnchor ) ->  EdgeArchitype :
0 commit comments