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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.9
rev: v0.16.10
hooks:
- id: ruff-check
- id: ruff-format
Expand Down Expand Up @@ -34,7 +34,7 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.1
rev: v2.4.0
hooks:
- id: mypy
args: ["--config-file=pyproject.toml", "."]
Expand Down
4 changes: 2 additions & 2 deletions mpt_api_client/http/async_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections.abc import AsyncIterator
from collections.abc import AsyncGenerator
from contextlib import AsyncExitStack, asynccontextmanager
from typing import TYPE_CHECKING, Any

Expand Down Expand Up @@ -123,7 +123,7 @@ async def stream(
headers: HeaderTypes | None = None,
query_params: QueryParam | None = None,
options: QueryOptions | None = None,
) -> AsyncIterator[HTTPXResponse]:
) -> AsyncGenerator[HTTPXResponse]:
"""Open a streaming response without buffering its body fully in memory.

Prefer the service-level ``stream_snapshot()`` and ``stream()``, which parse the
Expand Down
4 changes: 2 additions & 2 deletions mpt_api_client/http/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json as json_package
from collections.abc import Iterator
from collections.abc import Generator
from contextlib import ExitStack, contextmanager
from typing import TYPE_CHECKING, Any

Expand Down Expand Up @@ -132,7 +132,7 @@ def stream(
headers: HeaderTypes | None = None,
query_params: QueryParam | None = None,
options: QueryOptions | None = None,
) -> Iterator[HTTPXResponse]:
) -> Generator[HTTPXResponse]:
"""Open a streaming response without buffering its body fully in memory.

Prefer the service-level ``stream_snapshot()`` and ``stream()``, which parse the
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ dev = [
"freezegun==1.5.*",
"ipdb==0.13.*",
"ipython==9.*",
"mypy==2.3.*",
"mypy==2.4.*",
"pre-commit==4.6.*",
"pyfakefs==6.2.*",
"pytest==9.1.*",
"pytest-asyncio==1.4.*",
"pytest-cov==7.1.*",
"pytest-deadfixtures==3.1.*",
"pytest-mock==3.15.*",
"pytest-mock==3.16.*",
"pytest-randomly==5.0.*",
"pytest-reportportal==5.6.*",
"pytest-rerunfailures==16.7.*",
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/streaming/memory_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import gc
import tracemalloc
from collections.abc import Awaitable, Callable, Iterator
from collections.abc import Awaitable, Callable, Generator
from contextlib import contextmanager
from dataclasses import dataclass
from typing import Any
Expand Down Expand Up @@ -65,7 +65,7 @@ class StreamingMemoryProfile:


@contextmanager
def tracing_allocations() -> Iterator[None]:
def tracing_allocations() -> Generator[None]:
gc.collect()
tracemalloc.start(TRACE_FRAMES)
try:
Expand Down
Loading
Loading