We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8787789 commit e4359afCopy full SHA for e4359af
src/pluggy/_callers.py
@@ -22,9 +22,14 @@
22
Teardown = Generator[None, object, object]
23
24
25
-def run_legacy_hookwrapper(
+def run_old_style_hookwrapper(
26
hook_impl: HookImpl, hook_name: str, args: Sequence[object]
27
) -> Teardown:
28
+ """
29
+ backward compatibility wrapper to run a old style hookwrapper as a wrapper
30
31
+
32
33
teardown: Teardown = cast(Teardown, hook_impl.function(*args))
34
try:
35
next(teardown)
@@ -100,7 +105,7 @@ def _multicall(
100
105
101
106
# If this cast is not valid, a type error is raised below,
102
107
# which is the desired response.
103
- function_gen = run_legacy_hookwrapper(
108
+ function_gen = run_old_style_hookwrapper(
104
109
hook_impl, hook_name, args
110
)
111
0 commit comments