File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5454from tcod .sdl ._internal import _check , _check_float , _check_int , _check_p
5555
5656if TYPE_CHECKING :
57+ import builtins
5758 from collections .abc import Callable , Hashable , Iterable , Iterator
5859 from types import TracebackType
5960
@@ -426,9 +427,10 @@ def __enter__(self) -> Self:
426427
427428 def __exit__ (
428429 self ,
429- type : type [BaseException ] | None , # noqa: A002
430- value : BaseException | None ,
431- traceback : TracebackType | None ,
430+ _type : builtins .type [BaseException ] | None , # Explicit builtins prefix to disambiguate Sphinx cross-reference
431+ _value : BaseException | None ,
432+ _traceback : TracebackType | None ,
433+ / ,
432434 ) -> None :
433435 """Close the device when exiting the context."""
434436 self .close ()
You can’t perform that action at this time.
0 commit comments