Skip to content

Commit cddce6f

Browse files
pre-commit par
1 parent d7a5b6d commit cddce6f

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

src/pluggy/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from ._hooks import HookImpl
1818
from ._hooks import HookimplMarker
1919
from ._hooks import HookimplOpts
20-
from ._hookrelay import HookRelay
2120
from ._hooks import HookspecMarker
2221
from ._hooks import HookspecOpts
2322
from ._manager import PluginManager

src/pluggy/_hookrelay.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
from __future__ import annotations
66

7-
from typing import final, TYPE_CHECKING
7+
from typing import final
8+
from typing import TYPE_CHECKING
9+
810

911
if TYPE_CHECKING:
1012
from pluggy import HookCaller

src/pluggy/_hooks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
_Plugin = object
3333

3434
type _HookExec = Callable[
35-
[str, Sequence[HookImpl], Mapping[str, object], bool],
36-
Union[object, list[object]]
35+
[str, Sequence[HookImpl], Mapping[str, object], bool], Union[object, list[object]]
3736
]
3837

3938
type _HookImplFunction[T] = Callable[..., Union[T, Generator[None, Result[T], None]]]
@@ -375,8 +374,8 @@ class HookCaller:
375374
"_call_history",
376375
)
377376

378-
379377
_call_history: _CallHistory | None
378+
380379
def __init__(
381380
self,
382381
name: str,

src/pluggy/_manager.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
from collections.abc import Sequence
66
import inspect
77
import types
8-
from typing import Any, TypeAlias
8+
from typing import Any
99
from typing import Callable
1010
from typing import cast
1111
from typing import Final
1212
from typing import TYPE_CHECKING
13+
from typing import TypeAlias
1314
import warnings
1415

1516
from . import _tracing
16-
from ._hookrelay import HookRelay
1717
from ._callers import _multicall
18+
from ._hookrelay import HookRelay
1819
from ._hooks import _HookImplFunction
1920
from ._hooks import _Namespace
2021
from ._hooks import _Plugin
@@ -33,7 +34,9 @@
3334

3435

3536
_BeforeTrace: TypeAlias = Callable[[str, Sequence[HookImpl], Mapping[str, Any]], None]
36-
_AfterTrace: TypeAlias = Callable[[Result[Any], str, Sequence[HookImpl], Mapping[str, Any]], None]
37+
_AfterTrace: TypeAlias = Callable[
38+
[Result[Any], str, Sequence[HookImpl], Mapping[str, Any]], None
39+
]
3740

3841

3942
def _warn_for_function(warning: Warning, function: Callable[..., object]) -> None:

0 commit comments

Comments
 (0)