Skip to content

Commit 318d986

Browse files
arnavaghavmeta-codesync[bot]
authored andcommitted
Provide stub for make_context_decorator_wrapper
Reviewed By: akatrevorjay Differential Revision: D86998143 fbshipit-source-id: 72d0c9ff1faef27e12d4539aad9c2ac40bd4c491
1 parent 04c868d commit 318d986

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cinderx/PythonLib/__static__/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
SEQ_TUPLE = 0
106106

107107
try: # noqa: C901
108-
from cinderx import static
109108
from cinderx.static import ( # noqa: F401
110109
__build_cinder_class__,
111110
chkdict,
@@ -120,6 +119,7 @@
120119
is_static_callable,
121120
is_static_module,
122121
is_type_static,
122+
make_context_decorator_wrapper,
123123
make_recreate_cm,
124124
posix_clock_gettime_ns,
125125
PRIM_OP_ADD_DBL,
@@ -201,6 +201,9 @@ def _recreate_cm(self):
201201

202202
return _recreate_cm
203203

204+
def make_context_decorator_wrapper(decorator, wrapper_func, wrapped_func):
205+
return wrapper_func
206+
204207
def posix_clock_gettime_ns():
205208
return time.clock_gettime_ns(time.CLOCK_MONOTONIC)
206209

@@ -597,7 +600,7 @@ async def _no_profile_inner(*args, **kwds):
597600
# This will replace the vector call entry point with a C implementation.
598601
# We still want to return a function object because various things check
599602
# for functions or if an object is a co-routine.
600-
return static.make_context_decorator_wrapper(self, _no_profile_inner, func)
603+
return make_context_decorator_wrapper(self, _no_profile_inner, func)
601604

602605

603606
# pyre-ignore[16]: `Type` has no attribute `_recreate_cm`.

0 commit comments

Comments
 (0)