Skip to content

Commit

Permalink
Fixed linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertSamoilescu committed May 10, 2024
1 parent 66b63c9 commit c2cf03c
Show file tree
Hide file tree
Showing 11 changed files with 1,987 additions and 644 deletions.
8 changes: 4 additions & 4 deletions mlserver/batching/hooks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import wraps
from typing import Awaitable, Callable, Optional, AsyncIterable
from typing import Awaitable, Callable, Optional, AsyncIterator

from ..errors import MLServerError
from ..model import MLModel
Expand Down Expand Up @@ -55,7 +55,7 @@ async def _inner(payload: InferenceRequest) -> InferenceResponse:


def not_implemented_warning(
f: Callable[[AsyncIterable[InferenceResponse]], AsyncIterable[InferenceResponse]],
f: Callable[[AsyncIterator[InferenceRequest]], AsyncIterator[InferenceResponse]],
):
"""
Decorator to lets users know that adaptive batching is not required on
Expand All @@ -69,8 +69,8 @@ def not_implemented_warning(

@wraps(f)
async def _inner_stream(
payload: InferenceRequest,
) -> AsyncIterable[InferenceResponse]:
payload: AsyncIterator[InferenceRequest],
) -> AsyncIterator[InferenceResponse]:
model = _get_model(f)
logger.warning(
warning_template.format(model_name=model.name, f_name=f.__name__)
Expand Down
702 changes: 571 additions & 131 deletions mlserver/grpc/dataplane_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit c2cf03c

Please sign in to comment.