-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Removes deprecated function #2280 #2287
base: master
Are you sure you want to change the base?
Conversation
The committers listed above are authorized under a signed CLA. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: poorvaja-s-hub The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @poorvaja-s-hub! |
/assign |
@@ -39,10 +39,7 @@ def __init__(self, resp): | |||
self.reason = resp.reason | |||
self.data = resp.data | |||
|
|||
def getheaders(self): | |||
"""Returns a dictionary of the response headers.""" | |||
return self.urllib3_response.getheaders() |
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.
This file is generated by openapi-generator. Has this method been removed in a newer version of the generator? If so, was there a replacement?
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.
To clarify, is it okay to simply drop this method? I'd expect that there are other places depending on this, and would be broken if we simply drop this method.
@@ -39,10 +39,7 @@ def __init__(self, resp): | |||
self.reason = resp.reason | |||
self.data = resp.data | |||
|
|||
def getheaders(self): | |||
"""Returns a dictionary of the response headers.""" | |||
return self.urllib3_response.getheaders() |
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.
One alternative is to restrict the version of urllib3 that this client can support (< 2.0.0). That doesn't seem to be a good user experience. I'm not sure what's the adoption rate of urllib3 >= 2.0.0
as of today. cc @yliaog
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.
Never mind. 2.0.0 has been released for over a year: https://pypi.org/project/urllib3/#history
What type of PR is this?
kind/bug
What this PR does / why we need it:
Removes deprecated function
Which issue(s) this PR fixes:
Fixes #2280
Special notes for your reviewer: NONE
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: