Skip to content

Commit

Permalink
Apply ruff/flake8-pyi rule PYI038
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 24, 2024
1 parent 4775227 commit 576d774
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/zarr/abc/store.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from abc import ABC, abstractmethod
from asyncio import gather
from collections.abc import AsyncGenerator, Iterable
from types import TracebackType
from typing import Any, NamedTuple, Protocol, runtime_checkable

from typing_extensions import Self
Expand Down Expand Up @@ -49,7 +50,12 @@ def __enter__(self) -> Self:
"""Enter a context manager that will close the store upon exiting."""
return self

def __exit__(self, *args: Any) -> None:
def __exit__(
self,
exc_type: type[BaseException] | None,
exc_value: BaseException | None,
traceback: TracebackType | None,
) -> None:
"""Close the store."""
self.close()

Expand Down

0 comments on commit 576d774

Please sign in to comment.