1 parent 53dbba7 commit e5bfdc2Copy full SHA for e5bfdc2
1 file changed
araokaat/__init__.py
@@ -36,6 +36,7 @@
36
from datetime import datetime, timedelta, timezone
37
from numbers import Number
38
from time import time
39
+from types import TracebackType
40
from typing import (
41
Any,
42
Callable,
@@ -713,7 +714,12 @@ def __contains__(self, item: Any) -> bool:
713
714
def __enter__(self: Self) -> Self:
715
return self
716
- def __exit__(self, exc_type, exc_value, traceback) -> None:
717
+ def __exit__(
718
+ self,
719
+ exc_type: Optional[Type[BaseException]],
720
+ exc_value: Optional[BaseException],
721
+ traceback: Optional[TracebackType],
722
+ ) -> None:
723
try:
724
self.close()
725
except AttributeError:
0 commit comments