Skip to content

Commit

Permalink
sphinx-agent: Fix type annotation on Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Nov 19, 2023
1 parent 3e215f9 commit 782e6fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/esbonio/esbonio/sphinx_agent/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Iterable
from typing import Iterator
from typing import Optional
from typing import Type
from typing import TypeVar

from . import types
Expand Down Expand Up @@ -77,9 +78,9 @@ def __enter__(self) -> None:

def __exit__(
self,
typ: type[BaseException] | None,
val: BaseException | None,
tb: TracebackType | None,
typ: Optional[Type[BaseException]],
val: Optional[BaseException],
tb: Optional[TracebackType],
) -> bool:
from sphinx.locale import __
from sphinx.util.logging import NAMESPACE
Expand Down

0 comments on commit 782e6fb

Please sign in to comment.