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

fix: IsUrl for 2nd version of pydantic #74

Merged
merged 1 commit into from
Sep 3, 2023
Merged

fix: IsUrl for 2nd version of pydantic #74

merged 1 commit into from
Sep 3, 2023

Conversation

mishaga
Copy link
Contributor

@mishaga mishaga commented Jul 22, 2023

Closes issue #72

@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #74 (d41afcf) into main (77ddc33) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #74   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files          12       12           
  Lines         813      815    +2     
  Branches      146      146           
=======================================
+ Hits          811      813    +2     
  Misses          2        2           
Impacted Files Coverage Δ
dirty_equals/_other.py 98.80% <100.00%> (+0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77ddc33...d41afcf. Read the comment docs.

@@ -260,13 +262,15 @@ def equals(self, other: Any) -> bool:
parsed = self.parse_obj_as(self.url_type, other)
except self.ValidationError:
raise ValueError('Invalid URL')

equal = parsed == other if self.pydantic_version < '2' else parsed.unicode_string() == other
Copy link
Owner

Choose a reason for hiding this comment

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

we'll have problems when pydantic hits V10!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed this problem here: #80 😄

@samuelcolvin samuelcolvin merged commit 6b3b7dd into samuelcolvin:main Sep 3, 2023
@samuelcolvin
Copy link
Owner

thanks so much.

@alexmojaki
Copy link
Contributor

alexmojaki commented Sep 7, 2023

Closes issue #72

The issue is still open. I wonder if the word 'issue' threw off github?

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.

3 participants