Skip to content

Commit 9f9ee34

Browse files
dependabot[bot]sfc-gh-turbaszeksfc-gh-astus
authored
Bump pydantic from 2.9.2 to 2.10.4 (#1965)
* Bump pydantic from 2.9.2 to 2.10.4 Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.9.2 to 2.10.4. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.9.2...v2.10.4) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fixed model_fields in model --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tomasz Urbaszek <[email protected]> Co-authored-by: Adam Stus <[email protected]>
1 parent 51e2b65 commit 9f9ee34

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies = [
4141
"urllib3>=1.24.3,<2.4",
4242
"GitPython==3.1.44",
4343
"pip",
44-
"pydantic==2.9.2",
44+
"pydantic==2.10.4",
4545
]
4646
classifiers = [
4747
"Development Status :: 5 - Production/Stable",

snyk/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typer==0.12.5
1414
urllib3>=1.24.3,<2.4
1515
GitPython==3.1.44
1616
pip
17-
pydantic==2.9.2
17+
pydantic==2.10.4
1818
coverage==7.6.11
1919
pre-commit>=3.5.0
2020
pytest==8.3.4

src/snowflake/cli/api/project/schemas/updatable_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ def __init_subclass__(cls, **kwargs):
122122
class_dict = class_.__dict__
123123
field_annotations.update(class_dict.get("__annotations__", {}))
124124

125-
if "model_fields" in class_dict:
125+
if "model_fields" in class_dict and class_.model_fields:
126126
# This means the class dict has already been processed by Pydantic
127127
# All fields should properly be populated in model_fields
128-
field_values.update(class_dict["model_fields"])
128+
field_values.update(class_.model_fields)
129129
else:
130130
# If Pydantic did not process this class yet, get the values from class_dict directly
131131
field_values.update(class_dict)

0 commit comments

Comments
 (0)