Skip to content

Commit 903653c

Browse files
fixup: correct type ignore comment
1 parent e4359af commit 903653c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pluggy/_callers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def run_old_style_hookwrapper(
2929
backward compatibility wrapper to run a old style hookwrapper as a wrapper
3030
"""
3131

32-
3332
teardown: Teardown = cast(Teardown, hook_impl.function(*args))
3433
try:
3534
next(teardown)
@@ -58,7 +57,7 @@ def _raise_wrapfail(
5857
wrap_controller: Generator[None, object, object],
5958
msg: str,
6059
) -> NoReturn:
61-
co = wrap_controller.gi_code # type: ignore[union-attr]
60+
co = wrap_controller.gi_code # type: ignore[attr-defined]
6261
raise RuntimeError(
6362
f"wrap_controller at {co.co_name!r} {co.co_filename}:{co.co_firstlineno} {msg}"
6463
)

0 commit comments

Comments
 (0)