Skip to content

Commit 6323aaf

Browse files
committed
more py3.8 compatibility changes
1 parent ff7c0d5 commit 6323aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clients/python/test/test_osparc/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import json
1515
from tempfile import NamedTemporaryFile
1616
from pathlib import Path
17-
from typing import Any, TypeVar, NamedTuple, Final, cast, Dict
17+
from typing import Any, TypeVar, NamedTuple, Final, cast, Dict, Type
1818
from urllib.parse import urlparse
1919
from parse import parse, with_pattern
2020

@@ -90,7 +90,7 @@ def all_server_paths(osparc_openapi_specs: dict[str, Any]) -> set[ServerPath]:
9090
@pytest.fixture
9191
def create_osparc_response_model(
9292
osparc_openapi_specs: dict[str, Any],
93-
) -> Callable[[type[T]], T]:
93+
) -> Callable[[Type[T]], T]:
9494
def _create_model(model_type: type[T]) -> T:
9595
schemas = osparc_openapi_specs.get("components", {}).get("schemas", {})
9696
example_data = schemas.get(model_type.__name__, {}).get("example")

0 commit comments

Comments
 (0)