-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Pylint} Fix unnecessary-dunder-call #30365
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
Changes from 8 commits
451182d
3d9da7e
6fa5823
c0349f0
05b7505
0dc3e70
14dcb01
64f4134
ea8fc76
ebee43a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -316,7 +316,7 @@ def flush(): | |
| save(get_config_dir(), _session.generate_payload()) | ||
|
|
||
| # reset session fields, retaining correlation id and application | ||
| _session.__init__(correlation_id=_session.correlation_id, application=_session.application) | ||
| _session.__init__(correlation_id=_session.correlation_id, application=_session.application) # pylint: disable=unnecessary-dunder-call | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It uses
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @evelyn-ys for awareness.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know why the original author write in this way. Maybe we can try replace with _session = TelemetrySession(correlation_id=_session.correlation_id, application=_session.application) |
||
|
|
||
|
|
||
| @_user_agrees_to_telemetry | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.