Skip to content

Commit

Permalink
Fix linting & support for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lc525 committed Jul 12, 2023
1 parent 189bf7c commit 552e754
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mlserver/sys_tracing/tracepoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
See `system_tracing.provider` for more details about the actual tracepoint
implementation.
"""
from typing import Optional
from typing import Optional, Tuple, List
from enum import Enum, IntEnum, auto

# The underlying SDT tracepoint implementation currently only works on x86-64
Expand Down Expand Up @@ -120,7 +120,7 @@ def all():
def none():
return set()

def get_arg_types(self) -> tuple[Optional[list[int]], ArgStatus]:
def get_arg_types(self) -> Tuple[Optional[List[int]], ArgStatus]:
"""
Returns a (arg_types_list, status) tuple for the current tracepoint. The
arg_types_list, when not None, defines the function prototype of the
Expand Down
3 changes: 1 addition & 2 deletions mlserver/types/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pydantic import BaseModel as _BaseModel, json as pydantic_json
from enum import Enum
from pydantic import BaseModel as _BaseModel


class BaseModel(_BaseModel):
Expand Down
1 change: 0 additions & 1 deletion tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from mlserver.repository import DEFAULT_MODEL_SETTINGS_FILENAME

from .conftest import TESTDATA_PATH, TESTS_PATH
from mlserver.types import Tracepoint


def test_settings_from_env(monkeypatch):
Expand Down

0 comments on commit 552e754

Please sign in to comment.