Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Apply ruff/flake8-pyi rule PYI036
PYI036 Returning Any from function
  • Loading branch information
DimitriPapadopoulos committed Sep 24, 2024
commit 188155515abea4c31a52f13ba41c6df7334ace91
5 changes: 2 additions & 3 deletions tests/v3/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
from zarr.store.remote import RemoteStore

if TYPE_CHECKING:
from collections.abc import Generator, Iterator
from types import ModuleType
from collections.abc import Generator
from typing import Any, Literal

from _pytest.compat import LEGACY_PATH
Expand Down Expand Up @@ -99,7 +98,7 @@ async def async_group(request: pytest.FixtureRequest, tmpdir: LEGACY_PATH) -> As


@pytest.fixture(params=["numpy", "cupy"])
def xp(request: pytest.FixtureRequest) -> Iterator[ModuleType]:
def xp(request: pytest.FixtureRequest) -> Any:
"""Fixture to parametrize over numpy-like libraries"""

if request.param == "cupy":
Expand Down