Skip to content

Commit 3bea653

Browse files
committed
fix import formatting (linting)
1 parent dd386ea commit 3bea653

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

sdks/python/apache_beam/runners/interactive/interactive_beam.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
from typing import Optional
4444
from typing import Union
4545

46-
import pandas as pd
47-
4846
import apache_beam as beam
47+
import pandas as pd
4948
from apache_beam.dataframe.frame_base import DeferredBase
5049
from apache_beam.options.pipeline_options import FlinkRunnerOptions
5150
from apache_beam.pvalue import PCollection

sdks/python/apache_beam/runners/interactive/interactive_beam_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
import sys
2424
import time
2525
import unittest
26-
from typing import NamedTuple
27-
from unittest.mock import patch, MagicMock, ANY, call
2826
from concurrent.futures import TimeoutError
27+
from typing import NamedTuple
28+
from unittest.mock import ANY
29+
from unittest.mock import MagicMock
30+
from unittest.mock import call
31+
from unittest.mock import patch
2932

3033
import apache_beam as beam
3134
from apache_beam import dataframe as frames

sdks/python/apache_beam/runners/interactive/recording_manager.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,23 @@
1616
#
1717

1818
import collections
19-
from concurrent.futures import Future, ThreadPoolExecutor
2019
import logging
2120
import os
2221
import threading
2322
import time
23+
import uuid
2424
import warnings
25+
from concurrent.futures import Future
26+
from concurrent.futures import ThreadPoolExecutor
2527
from typing import Any
2628
from typing import Dict
2729
from typing import List
2830
from typing import Optional
2931
from typing import Set
3032
from typing import Union
3133

32-
import pandas as pd
33-
34-
import uuid
35-
3634
import apache_beam as beam
35+
import pandas as pd
3736
from apache_beam.dataframe.frame_base import DeferredBase
3837
from apache_beam.options import pipeline_options
3938
from apache_beam.portability.api import beam_runner_api_pb2
@@ -51,8 +50,10 @@
5150
_LOGGER = logging.getLogger(__name__)
5251

5352
try:
54-
from IPython.display import display, HTML, clear_output
5553
import ipywidgets as widgets
54+
from IPython.display import HTML
55+
from IPython.display import clear_output
56+
from IPython.display import display
5657

5758
IS_IPYTHON = True
5859
except ImportError:

sdks/python/apache_beam/runners/interactive/recording_manager_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
import time
1919
import unittest
2020
from concurrent.futures import Future
21-
from unittest.mock import patch, MagicMock, call
21+
from unittest.mock import MagicMock
22+
from unittest.mock import call
23+
from unittest.mock import patch
2224

2325
import apache_beam as beam
2426
from apache_beam import coders
@@ -30,11 +32,11 @@
3032
from apache_beam.runners.interactive.caching.cacheable import CacheKey
3133
from apache_beam.runners.interactive.interactive_runner import InteractiveRunner
3234
from apache_beam.runners.interactive.options.capture_limiters import Limiter
35+
from apache_beam.runners.interactive.recording_manager import _LOGGER
3336
from apache_beam.runners.interactive.recording_manager import AsyncComputationResult
3437
from apache_beam.runners.interactive.recording_manager import ElementStream
3538
from apache_beam.runners.interactive.recording_manager import Recording
3639
from apache_beam.runners.interactive.recording_manager import RecordingManager
37-
from apache_beam.runners.interactive.recording_manager import _LOGGER
3840
from apache_beam.runners.interactive.testing.test_cache_manager import FileRecordsBuilder
3941
from apache_beam.runners.interactive.testing.test_cache_manager import InMemoryCache
4042
from apache_beam.runners.runner import PipelineState

0 commit comments

Comments
 (0)