Skip to content

Commit 4352760

Browse files
committed
format revert
1 parent 12de19d commit 4352760

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

pulsar/__init__.py

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
The Pulsar Python client library is based on the existing C++ client library.
2222
All the same features are exposed through the Python interface.
2323
24-
Currently, the supported Python versions are 3.9, 3.10, 3.11, 3.12, 3.13, and 3.14.
24+
Currently, the supported Python versions are 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, and 3.14.
2525
2626
=================
2727
Install from PyPI
@@ -43,39 +43,27 @@
4343
"""
4444

4545
import logging
46-
from typing import Callable, List, Optional, Tuple, Union
46+
from typing import Callable, List, Tuple, Optional, Union
4747

4848
import _pulsar
49-
from _pulsar import (
50-
BatchingType,
51-
BatchReceivePolicy,
52-
CompressionType,
53-
ConsumerCryptoFailureAction,
54-
ConsumerType,
55-
DeadLetterPolicyBuilder, # noqa: F401
56-
InitialPosition,
57-
KeySharedMode,
58-
KeySharedPolicy,
59-
LoggerLevel,
60-
PartitionsRoutingMode,
61-
ProducerAccessMode,
62-
RegexSubscriptionMode,
63-
Result,
64-
)
6549

66-
from pulsar import schema
50+
from _pulsar import Result, CompressionType, ConsumerType, InitialPosition, PartitionsRoutingMode, BatchingType, \
51+
LoggerLevel, BatchReceivePolicy, KeySharedPolicy, KeySharedMode, ProducerAccessMode, RegexSubscriptionMode, \
52+
DeadLetterPolicyBuilder, ConsumerCryptoFailureAction # noqa: F401
53+
6754
from pulsar.__about__ import __version__
55+
6856
from pulsar.exceptions import *
69-
from pulsar.functions.context import Context
70-
from pulsar.functions.function import Function
71-
from pulsar.functions.serde import IdentitySerDe, PickleSerDe, SerDe
7257
from pulsar.schema.schema import BytesSchema
7358
from pulsar.tableview import TableView
7459

60+
from pulsar.functions.function import Function
61+
from pulsar.functions.context import Context
62+
from pulsar.functions.serde import SerDe, IdentitySerDe, PickleSerDe
63+
from pulsar import schema
7564
_schema = schema
7665

7766
import re
78-
7967
_retype = type(re.compile('x'))
8068

8169
from datetime import timedelta

0 commit comments

Comments
 (0)