diff --git a/src/apluggy/_wrap.py b/src/apluggy/_wrap.py index 71f66d7..06f36c9 100644 --- a/src/apluggy/_wrap.py +++ b/src/apluggy/_wrap.py @@ -101,8 +101,9 @@ import asyncio import contextlib +from collections.abc import Generator from dataclasses import dataclass -from typing import Any, Generator, Optional +from typing import Any, Optional from exceptiongroup import BaseExceptionGroup from pluggy import PluginManager as PluginManager_ diff --git a/tests/test_with_send_throw.py b/tests/test_with_send_throw.py index d813874..a71c74a 100644 --- a/tests/test_with_send_throw.py +++ b/tests/test_with_send_throw.py @@ -1,5 +1,6 @@ +from collections.abc import Generator from itertools import zip_longest -from typing import ContextManager, Generator, Optional +from typing import ContextManager, Optional import pytest from exceptiongroup import BaseExceptionGroup