File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77from collections .abc import Callable , Generator , Mapping
88from contextlib import contextmanager
99from dataclasses import dataclass
10+ from types import TracebackType
1011from typing import TYPE_CHECKING , Literal , Self
1112from urllib .parse import urlparse
1213
@@ -558,16 +559,17 @@ def __enter__(self) -> Self:
558559 self ._started .append ((mock , router , httpx2_router ))
559560 return self
560561
561- def __exit__ (self , * exc : object ) -> Literal [False ]:
562+ def __exit__ (
563+ self ,
564+ _exc_type : type [BaseException ] | None ,
565+ _exc_value : BaseException | None ,
566+ _traceback : TracebackType | None ,
567+ ) -> Literal [False ]:
562568 """Stop the Vuforia mock.
563569
564570 Returns:
565571 False
566572 """
567- # __exit__ needs this to be passed in but vulture thinks that it is
568- # unused, so we "use" it here.
569- del exc
570-
571573 mock , router , httpx2_router = self ._started .pop ()
572574 mock .stop ()
573575 router .stop ()
You can’t perform that action at this time.
0 commit comments