-
Notifications
You must be signed in to change notification settings - Fork 4.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
[BEAM-11516] Upgrade to pylint 2.11.1, fix warnings #15612
Changes from 5 commits
2583220
ec5cd7f
c91f670
4e8f255
7a403b0
42ac3f2
0a776aa
c323d98
aafcd6c
80aec5c
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 |
---|---|---|
|
@@ -747,6 +747,7 @@ def encode_to_stream(self, value, out, nested): | |
def decode_from_stream(self, in_, nested): | ||
# type: (create_InputStream, bool) -> IntervalWindow | ||
if not TYPE_CHECKING: | ||
# pylint: disable=global-variable-not-assigned | ||
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 think this will disable the check for the entire block, not just the line. You might put at the end of the line or use 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. Changed |
||
global IntervalWindow | ||
if IntervalWindow is None: | ||
from apache_beam.transforms.window import IntervalWindow | ||
|
@@ -1390,8 +1391,7 @@ class ParamWindowedValueCoderImpl(WindowedValueCoderImpl): | |
and pane info values during decoding when reconstructing the windowed | ||
value.""" | ||
def __init__(self, value_coder, window_coder, payload): | ||
super(ParamWindowedValueCoderImpl, | ||
self).__init__(value_coder, TimestampCoderImpl(), window_coder) | ||
super().__init__(value_coder, TimestampCoderImpl(), window_coder) | ||
self._timestamp, self._windows, self._pane_info = self._from_proto( | ||
payload, window_coder) | ||
|
||
|
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.
Some of these may be useful to apply eventually.
unspecified-encoding
in particular we should probably fix. Since Beam runs on distributed worker environments that may have surprising default encodings, it's good for our code to be explicit about encodings.We could add a TODO and file a follow-up jira if it's too much to take on in this PR though.
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.
Jira BEAM-12992 created to follow up
unspecified-encoding
warning