Skip to content

Commit 060fd16

Browse files
FIXUP: rebase artifacts
1 parent 55f4503 commit 060fd16

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

src/pluggy/_callers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from ._async import Submitter
1919
from ._hook_callers import HookImpl
2020
from ._hook_callers import WrapperImpl
21-
from ._hook_callers import WrapperImpl
2221
from ._result import Result
2322
from ._warnings import PluggyTeardownRaisedWarning
2423

src/pluggy/_hook_callers.py

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,6 @@
4545
]
4646

4747

48-
def _insert_hookimpl_into_list(
49-
hookimpl: _T_HookImpl, target_list: MutableSequence[_T_HookImpl]
50-
) -> None:
51-
"""Insert a hookimpl into the target list maintaining proper ordering.
52-
53-
The ordering is: [trylast, normal, tryfirst]
54-
"""
55-
if hookimpl.trylast:
56-
target_list.insert(0, hookimpl)
57-
elif hookimpl.tryfirst:
58-
target_list.append(hookimpl)
59-
else:
60-
# find last non-tryfirst method
61-
i = len(target_list) - 1
62-
while i >= 0 and target_list[i].tryfirst:
63-
i -= 1
64-
target_list.insert(i + 1, hookimpl)
65-
66-
67-
_T_HookImpl = TypeVar("_T_HookImpl", bound="HookImpl")
68-
69-
# Type alias for completion hook functions
70-
CompletionHook = Callable[
71-
[object | list[object] | None, BaseException | None],
72-
tuple[object | list[object] | None, BaseException | None],
73-
]
74-
75-
7648
def _insert_hookimpl_into_list(
7749
hookimpl: _T_HookImpl, target_list: MutableSequence[_T_HookImpl]
7850
) -> None:
@@ -592,10 +564,6 @@ def __call__(self, **kwargs: object) -> Any:
592564
self._orig._async_submitter,
593565
)
594566

595-
normal_impls = self._get_filtered(self._orig._normal_hookimpls)
596-
wrapper_impls = self._get_filtered(self._orig._wrapper_hookimpls)
597-
return hookexec(self.name, normal_impls, wrapper_impls, kwargs, firstresult)
598-
599567
def call_historic(
600568
self,
601569
result_callback: Callable[[Any], None] | None = None,
@@ -713,18 +681,6 @@ class HookImpl:
713681
trylast: Final[bool]
714682
hookimpl_config: Final[HookimplConfiguration]
715683

716-
function: Final[_HookImplFunction[object]]
717-
argnames: Final[tuple[str, ...]]
718-
kwargnames: Final[tuple[str, ...]]
719-
plugin: Final[_Plugin]
720-
plugin_name: Final[str]
721-
wrapper: Final[bool]
722-
hookwrapper: Final[bool]
723-
optionalhook: Final[bool]
724-
tryfirst: Final[bool]
725-
trylast: Final[bool]
726-
hookimpl_config: Final[HookimplConfiguration]
727-
728684
def __init__(
729685
self,
730686
plugin: _Plugin,

0 commit comments

Comments
 (0)