-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
URL equality/passing None to URL.build #275
Comments
That's interesting. |
I think |
|
I’m using hypothesis to generate test data. More specifically a dict which is then passed to yarl using URL.build(**dict). And I was simply assuming None would be mapped to the default value, which is apparently wrong (judging from https://yarl.readthedocs.io/en/latest/api.html#yarl.URL.fragment). This |
TypeError sounds good to me. |
Fixed by #276 |
The equality operator (==, __eq__) does not work properly when passing
None
to URL.build. Example:Passing an empty string works as expected. This is very confusing, because repr produces exactly the same representation.
The text was updated successfully, but these errors were encountered: