Skip to content

Commit

Permalink
Preserve existing linter comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Jul 4, 2024
1 parent 14c52d6 commit 64e6194
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion sdks/python/apache_beam/internal/module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import re
import sys

from typing import Any


Expand Down
5 changes: 3 additions & 2 deletions sdks/python/apache_beam/runners/direct/test_stream_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from queue import Empty as EmptyException
from queue import Queue
from threading import Thread
from typing import Union

import grpc

Expand Down Expand Up @@ -309,8 +310,8 @@ def is_alive():
return not (shutdown_requested or evaluation_context.shutdown_requested)

# The shared queue that allows the producer and consumer to communicate.
channel: 'Queue[Union[test_stream.Event, _EndOfStream]]' = (
Queue()) # noqa: F821
channel: 'Queue[Union[test_stream.Event, _EndOfStream]]' = ( # noqa: F821
Queue())
event_stream = Thread(
target=_TestStream._stream_events_from_rpc,
args=(endpoint, output_tags, coder, channel, is_alive))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ def __init__(
self,
user_pipeline: beam.Pipeline,
pipeline_var: str = None,
test_limiters: List['Limiter'] = None) -> None:
# noqa: F821
test_limiters: List['Limiter'] = None) -> None: # noqa: F821

self.user_pipeline: beam.Pipeline = user_pipeline
self.pipeline_var: str = pipeline_var if pipeline_var else ''
Expand All @@ -265,8 +264,6 @@ def __init__(
self._test_limiters = test_limiters if test_limiters else []

def _watch(self, pcolls: List[beam.pvalue.PCollection]) -> None:
# noqa: F821

"""Watch any pcollections not being watched.
This allows for the underlying caching layer to identify the PCollection as
Expand Down

0 comments on commit 64e6194

Please sign in to comment.