Skip to content

Commit

Permalink
Fixes typing for older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Jul 27, 2023
1 parent 6085b17 commit e2fb362
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tika_client/client.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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()

0 comments on commit e2fb362

Please sign in to comment.