Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/vws_cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import dataclasses
import io
import sys
from collections.abc import Iterator
from collections.abc import Generator
from pathlib import Path

import click
Expand Down Expand Up @@ -40,7 +40,7 @@

@beartype
@contextlib.contextmanager
def _handle_vws_exceptions() -> Iterator[None]:
def _handle_vws_exceptions() -> Generator[None]:
"""Show error messages and catch exceptions from ``VWS-Python``."""
error_message = ""

Expand Down
4 changes: 2 additions & 2 deletions src/vws_cli/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import dataclasses
import io
import sys
from collections.abc import Iterator
from collections.abc import Generator
from pathlib import Path

import click
Expand Down Expand Up @@ -35,7 +35,7 @@

@beartype
@contextlib.contextmanager
def _handle_vwq_exceptions() -> Iterator[None]:
def _handle_vwq_exceptions() -> Generator[None]:
"""Show error messages and catch exceptions from ``VWS-Python``."""
try:
yield
Expand Down
4 changes: 2 additions & 2 deletions src/vws_cli/vumark.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import contextlib
import sys
from collections.abc import Iterator
from collections.abc import Generator
from enum import StrEnum, unique
from pathlib import Path

Expand Down Expand Up @@ -51,7 +51,7 @@ class VuMarkFormatChoice(StrEnum):

@beartype
@contextlib.contextmanager
def _handle_vumark_exceptions() -> Iterator[None]:
def _handle_vumark_exceptions() -> Generator[None]:
"""Show error messages and catch exceptions from ``VWS-Python``."""
error_message = ""

Expand Down
Loading