Skip to content

Comments

Fix for transition argument#113

Merged
VladIftime merged 8 commits intomainfrom
fix/transition-argumanent-name-fix
Jul 9, 2025
Merged

Fix for transition argument#113
VladIftime merged 8 commits intomainfrom
fix/transition-argumanent-name-fix

Conversation

@VladIftime
Copy link
Collaborator

Fix for #111

Signed-off-by: Vlad Iftime <vladiftime60@gmail.com>
Copy link
Contributor

@MauriceHendrix MauriceHendrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec state it's from and not from_. I looked at it some more and see why it's not defined as from(as you can't) . However you seem to already have the suggested workaround of introducing an alias workaround.

Going through the documentation [documentation] populate_by_name. is depricated from pydnatic 2.11, but the suggested alternative doesn't seem tow ork with 2.10

Copy link
Contributor

@MauriceHendrix MauriceHendrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On closer inspection, this makese sense

@MauriceHendrix MauriceHendrix self-requested a review May 1, 2025 07:51
Copy link
Contributor

@MauriceHendrix MauriceHendrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However the tests don't seem to work. Look some sort of tox / python version error maybe but I'm not sure

@Flix6x Flix6x linked an issue May 6, 2025 that may be closed by this pull request
checking it's really a python 3.8 issue
checking if it's a 3.8 issue
reanable 3.8 for tests
testing if it's down to ubuntu version
* dropping python 3.8 adding 3.13 support
@MauriceHendrix MauriceHendrix self-requested a review May 6, 2025 13:38
Copy link
Contributor

@MauriceHendrix MauriceHendrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladIftime added python versions fix for the tests as far as I'm concerned you can merge this now

@VladIftime VladIftime merged commit 2e5e44a into main Jul 9, 2025
19 checks passed
@VladIftime VladIftime deleted the fix/transition-argumanent-name-fix branch July 9, 2025 08:47
@Flix6x Flix6x added this to the 0.6.0 milestone Jul 9, 2025
@Flix6x
Copy link
Collaborator

Flix6x commented Jul 9, 2025

I assigned this to v0.6.0. Since this upcoming version will drop support for Python 3.8, in case anyone needs the fix in this PR to work with Python 3.8, drop us a line here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with Transition and from_ field during pydantic validation

3 participants