github-actions[bot] commited on
Commit
d0887fa
·
1 Parent(s): 297b627

Auto-sync from demo at Wed Dec 24 07:03:01 UTC 2025

Browse files
graphgen/utils/__init__.py CHANGED
@@ -19,4 +19,3 @@ from .help_nltk import NLTKHelper
19
  from .log import CURRENT_LOGGER_VAR, logger, set_logger
20
  from .loop import create_event_loop
21
  from .run_concurrent import run_concurrent
22
- from .wrap import async_to_sync_method
 
19
  from .log import CURRENT_LOGGER_VAR, logger, set_logger
20
  from .loop import create_event_loop
21
  from .run_concurrent import run_concurrent
 
graphgen/utils/wrap.py DELETED
@@ -1,13 +0,0 @@
1
- from functools import wraps
2
- from typing import Any, Callable
3
-
4
- from .loop import create_event_loop
5
-
6
-
7
- def async_to_sync_method(func: Callable) -> Callable:
8
- @wraps(func)
9
- def wrapper(self, *args, **kwargs) -> Any:
10
- loop = create_event_loop()
11
- return loop.run_until_complete(func(self, *args, **kwargs))
12
-
13
- return wrapper