Skip to content

Commit

Permalink
Unpin Pydantic and related packages
Browse files Browse the repository at this point in the history
The Pydantic version we used before has an issue in the mypy plugin
which can lead to actual typing errors slipping through, see
pydantic/pydantic#9008.

Note that the version we udpate to has this issue:
pydantic/pydantic#9319
However, since a workaround is available, we still udpate to avoid
introducing new typing errors.

Also fix newly found issues. Apparently, polyfactory now has issues with
handling field aliases, so we switch to validation aliases, which are
sufficient in this case.

CMK-17006

Change-Id: I8b8ebb072f0c68b799d28c132c5f5605232db9c7
  • Loading branch information
jherbel committed May 13, 2024
1 parent e60bb65 commit 18c7fa3
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 234 deletions.
6 changes: 3 additions & 3 deletions Pipfile
Expand Up @@ -157,9 +157,9 @@ apispec = "==6.4.0" # direct dependency
marshmallow = "==3.21.1" # direct dependency
marshmallow-oneofschema = "==3.1.1" # direct dependency
apispec-oneofschema = "==3.0.0" # direct dependency
pydantic = "==2.5.2"
pydantic_core = "==2.14.5" # used by pydantic and by us
annotated-types = "==0.6.0" # provides validators for pydantic2
pydantic = "*"
pydantic_core = "*" # used by pydantic and by us
annotated-types = "*" # provides validators for pydantic2
paho-mqtt = "==1.6.1" # needed for MQTT special agent
python-active-directory = "==2.0.1"
rrdtool = "==0.1.16" # Actually we ship the binding which comes with rrdtool itself...
Expand Down

0 comments on commit 18c7fa3

Please sign in to comment.