Skip to content

Commit e5bfdc2

Browse files
committed
Update type annotations/
1 parent 53dbba7 commit e5bfdc2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

araokaat/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
from datetime import datetime, timedelta, timezone
3737
from numbers import Number
3838
from time import time
39+
from types import TracebackType
3940
from typing import (
4041
Any,
4142
Callable,
@@ -713,7 +714,12 @@ def __contains__(self, item: Any) -> bool:
713714
def __enter__(self: Self) -> Self:
714715
return self
715716

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:
717723
try:
718724
self.close()
719725
except AttributeError:

0 commit comments

Comments
 (0)