Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
acocuzzo committed Apr 22, 2022
1 parent 3307d62 commit 7359447
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
8 changes: 3 additions & 5 deletions samples/snippets/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,9 @@ def publish_messages_with_flow_control_settings(project_id: str, topic_id: str)
from concurrent import futures

from google.cloud import pubsub_v1
from google.cloud.pubsub_v1.types import (
LimitExceededBehavior,
PublisherOptions,
PublishFlowControl,
)
from google.cloud.pubsub_v1.types import (LimitExceededBehavior,
PublisherOptions,
PublishFlowControl)

# TODO(developer)
# project_id = "your-project-id"
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/publisher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
import time
import typing
from typing import Any, Callable, cast, Iterator, TypeVar, Union
from typing import Any, Callable, Iterator, TypeVar, Union, cast
import uuid

from _pytest.capture import CaptureFixture
Expand Down
5 changes: 3 additions & 2 deletions samples/snippets/schema_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
# limitations under the License.

import os
from typing import Any, Callable, cast, Generator, TypeVar
from typing import Any, Callable, Generator, TypeVar, cast
import uuid

from _pytest.capture import CaptureFixture
from flaky import flaky
from google.api_core.exceptions import InternalServerError, NotFound
from google.cloud import pubsub_v1
from google.cloud.pubsub import PublisherClient, SchemaServiceClient, SubscriberClient
from google.cloud.pubsub import (PublisherClient, SchemaServiceClient,
SubscriberClient)
from google.pubsub_v1.types import Encoding
import pytest

Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/subscriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re
import sys
import time
from typing import Any, Callable, cast, Generator, List, TypeVar
from typing import Any, Callable, Generator, List, TypeVar, cast
import uuid

from _pytest.capture import CaptureFixture
Expand Down

0 comments on commit 7359447

Please sign in to comment.