Use consistent param names in patch_extension(...) functions: context -> ctx.

This commit is contained in:
Ryan Dick 2024-07-23 09:18:04 -04:00
parent 4e8dcb7a1a
commit 39e804d0f8
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class ExtensionBase:
return self._callbacks
@contextmanager
def patch_extension(self, context: DenoiseContext):
def patch_extension(self, ctx: DenoiseContext):
yield None
@contextmanager

View File

@ -52,13 +52,13 @@ class ExtensionsManager:
cb.function(ctx)
@contextmanager
def patch_extensions(self, context: DenoiseContext):
def patch_extensions(self, ctx: DenoiseContext):
if self._is_canceled and self._is_canceled():
raise CanceledException
with ExitStack() as exit_stack:
for ext in self._extensions:
exit_stack.enter_context(ext.patch_extension(context))
exit_stack.enter_context(ext.patch_extension(ctx))
yield None