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

DSN migration for pydantic v3 #172

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

CherrySuryp
Copy link

@CherrySuryp CherrySuryp commented May 12, 2024

This PR is related to this task from Pydantic main library.
I moved DSN types and tests from original pydantic/networks.py without any changes

Checklist

✅ The pull request title is a good summary of the changes - it will be used in the changelog
✅ Unit tests for the changes exist

Selected Reviewer: @yezz123

Copy link

codecov bot commented May 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@CherrySuryp
Copy link
Author

Please review

@CherrySuryp
Copy link
Author

CherrySuryp commented May 12, 2024

Hello there! All checks for Python 3.8 have failed :(
It fell with error:
ImportError: cannot import name 'Annotated' from 'typing' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/typing.py).

Seems like Python 3.8 doesn't have Annotated class

@CherrySuryp
Copy link
Author

I also think it would make sense to move the entire pydantic/networks.py module to pydantic-extra-types

Copy link
Collaborator

@yezz123 yezz123 left a comment

Choose a reason for hiding this comment

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

Waiting for @sydney-runkle approval and then we can merge it, Overall LGTM 🚀

@CherrySuryp
Copy link
Author

@yezz123 @sydney-runkle can we move other stuff from pydantic/networks.py to current libraray? I can do it in this PR

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