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 739fcd4 commit b4c2146Copy full SHA for b4c2146
src/pluggy/_manager.py
@@ -22,7 +22,6 @@
22
from ._hooks import HookImpl
23
from ._hooks import HookimplOpts
24
from ._hooks import HookRelay
25
-from ._hooks import HookSpec
26
from ._hooks import HookspecOpts
27
from ._hooks import normalize_hookimpl_opts
28
from ._result import Result
@@ -272,7 +271,7 @@ def parse_hookspec_opts(
272
271
customize how hook specifications are picked up. By default, returns the
273
options for items decorated with :class:`HookspecMarker`.
274
"""
275
- method: HookSpec = getattr(module_or_class, name)
+ method = getattr(module_or_class, name)
276
opts: HookspecOpts | None = getattr(method, self.project_name + "_spec", None)
277
return opts
278
0 commit comments