diff --git a/src/tika_client/client.py b/src/tika_client/client.py index 849a4c8..d577268 100644 --- a/src/tika_client/client.py +++ b/src/tika_client/client.py @@ -1,6 +1,8 @@ import logging from types import TracebackType from typing import Dict +from typing import Optional +from typing import Type from httpx import Client @@ -47,8 +49,8 @@ def __enter__(self) -> "TikaClient": def __exit__( self, - exc_type: type[BaseException] | None, - exc_val: BaseException | None, - exc_tb: TracebackType | None, + exc_type: Optional[Type[BaseException]], + exc_val: Optional[BaseException], + exc_tb: Optional[TracebackType], ) -> None: self._client.close()