Skip to content

Commit 89ae40b

Browse files
authored
fix issue with latest pydantic version (ITISFoundation#3298)
1 parent c604d7c commit 89ae40b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/mypy.bash

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ IFS=$'\n\t'
77

88
image_name="$(basename "$0"):latest"
99

10-
# FIXME: current version of mypy is pinned to 0.910 because 0.920 fails with pydantic plugin
11-
10+
# NOTE: latest pydantic version (1.10.0) creates a invalid issue in mypy.
11+
# using mypy 0.971 (compiled: yes)
12+
# simcore_service_dynamic_sidecar/models/shared_store.py:12:47: error: Incompatible types in assignment (expression has type "List[_T]", variable has type "List[str]")
1213
docker buildx build --tag "$image_name" - &>/dev/null <<EOF
1314
FROM python:3.9.12-slim-buster
1415
RUN pip install --upgrade pip \
15-
&& pip install mypy==0.910 \
16-
pydantic[email] \
17-
types-aiofiles \
18-
types-PyYAML \
16+
&& pip install mypy==0.971 \
17+
pydantic[email]==1.9.2 \
18+
types-aiofiles==0.8.10 \
19+
types-PyYAML==6.0.11 \
1920
types-ujson \
2021
types-setuptools
2122
ENTRYPOINT ["mypy"]

0 commit comments

Comments
 (0)