Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume that pydantic.HttpUrl is a str subclass #564

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

gotmax23
Copy link
Contributor

@gotmax23 gotmax23 commented Dec 1, 2023

In Pydantic v2, pydantic.HttpUrl is no longer a subclass of str, so it's necessary to coerce it into a str for functions that expect that.

Relates: ansible-community/antsibull-core#119


This can be merged anytime. The changes here are compatible with both pydantic v1 and pydantic v2.

In Pydantic v2, `pydantic.HttpUrl` is no longer a subclass of `str`, so
it's necessary to coerce it into a str for functions that expect that.

Relates: ansible-community/antsibull-core#119
@felixfontein
Copy link
Collaborator

Restarting synchronize and CI.

@gotmax23
Copy link
Contributor Author

Thanks!

@gotmax23 gotmax23 merged commit 3d48af6 into ansible-community:main Dec 16, 2023
14 of 18 checks passed
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.

2 participants