-
Notifications
You must be signed in to change notification settings - Fork 260
Support for dict in Client.parse_response formats #790
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems line 630ff in parse_response() needs some cast() to make mypy happy for the urlencoded path still.
if sformat == "urlencoded":
str_info = cast(str, info)
info = self.get_urlinfo(str_info)
Looks good otherwise. Could you add this please?
Fixed it now. I also added an additional type guard so that an error is raised if info is passed as an dict but sformat isn't a dictionary. |
Temporarily raise mccabe limits.
Codecov Report
@@ Coverage Diff @@
## master #790 +/- ##
==========================================
- Coverage 63.69% 63.68% -0.01%
==========================================
Files 64 64
Lines 11843 11846 +3
Branches 2095 2096 +1
==========================================
+ Hits 7543 7544 +1
- Misses 3704 3705 +1
- Partials 596 597 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems the extra isinstance() check pushes pylama over the threshold of its complexity measure due to the extra if. I just pushed the limit a little higher as it is arbitrary anyway and will refactor it later.
The Travis check is basically dead (due to travis stopping its free service), so no issue there.
Thanks for the swift feedback and process :) I saw that the last release was last year. Is there any plan for when the next release will be? I've seen some other changes in master which aren't in the released version which I'd like to have. |
Yes, a release is planned soonish, i think when @tpazderka finds the time to do one. |
Nice, great to hear. Looks like you've made some python 3.9 improvements since the last release. |
CHANGELOG.md
.In response to #789