Skip to content

Commit d422d09

Browse files
authored
remove (object) (#33612)
1 parent f8f223d commit d422d09

20 files changed

+63
-63
lines changed

sdk/eventhub/azure-eventhub/azure/eventhub/_client_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _get_backoff_time(retry_mode, backoff_factor, backoff_max, retried_times):
193193
return min(backoff_max, backoff_value)
194194

195195

196-
class EventHubSharedKeyCredential(object):
196+
class EventHubSharedKeyCredential:
197197
"""The shared access key credential used for authentication.
198198
199199
:param str policy: The name of the shared access policy.
@@ -211,7 +211,7 @@ def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken: # pylint:disab
211211
return _generate_sas_token(scopes[0], self.policy, self.key)
212212

213213

214-
class EventhubAzureNamedKeyTokenCredential(object):
214+
class EventhubAzureNamedKeyTokenCredential:
215215
"""The named key credential used for authentication.
216216
217217
:param credential: The AzureNamedKeyCredential that should be used.
@@ -229,7 +229,7 @@ def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken: # pylint:disab
229229
return _generate_sas_token(scopes[0], name, key)
230230

231231

232-
class EventHubSASTokenCredential(object):
232+
class EventHubSASTokenCredential:
233233
"""The shared access token credential used for authentication.
234234
235235
:param str token: The shared access token string
@@ -256,7 +256,7 @@ def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken: # pylint:disab
256256
return AccessToken(self.token, self.expiry)
257257

258258

259-
class EventhubAzureSasTokenCredential(object):
259+
class EventhubAzureSasTokenCredential:
260260
"""The shared access token credential used for authentication
261261
when AzureSasCredential is provided.
262262
@@ -286,7 +286,7 @@ def get_token(self, *scopes: str, **kwargs: Any) -> AccessToken: # pylint:disab
286286
return AccessToken(signature, cast(int, expiry))
287287

288288

289-
class ClientBase(object): # pylint:disable=too-many-instance-attributes
289+
class ClientBase: # pylint:disable=too-many-instance-attributes
290290
def __init__(
291291
self,
292292
fully_qualified_namespace: str,

sdk/eventhub/azure-eventhub/azure/eventhub/_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
)
105105

106106

107-
class EventData(object):
107+
class EventData:
108108
"""The EventData class is a container for event content.
109109
110110
:param body: The data to send in a single message. body can be type of str or bytes.
@@ -520,7 +520,7 @@ def message_id(self, value: str) -> None:
520520
self._raw_amqp_message.properties.message_id = value
521521

522522

523-
class EventDataBatch(object):
523+
class EventDataBatch:
524524
"""A batch of events.
525525
526526
Sending events in a batch is more performant than sending individual events.

sdk/eventhub/azure-eventhub/azure/eventhub/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515

16-
class Configuration(object): # pylint:disable=too-many-instance-attributes
16+
class Configuration: # pylint:disable=too-many-instance-attributes
1717
def __init__(
1818
self, # pylint:disable=unused-argument
1919
*,

sdk/eventhub/azure-eventhub/azure/eventhub/_connection_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class _ConnectionMode(Enum):
4848
SeparateConnection = 2
4949

5050

51-
class _SharedConnectionManager(object): # pylint:disable=too-many-instance-attributes
51+
class _SharedConnectionManager: # pylint:disable=too-many-instance-attributes
5252
def __init__(self, **kwargs: Any):
5353
self._lock = Lock()
5454
self._conn: Union[Connection, uamqp_Connection] = None
@@ -106,7 +106,7 @@ def reset_connection_if_broken(self) -> None:
106106
self._conn = None
107107

108108

109-
class _SeparateConnectionManager(object):
109+
class _SeparateConnectionManager:
110110
def __init__(self, **kwargs):
111111
pass
112112

sdk/eventhub/azure-eventhub/azure/eventhub/_eventprocessor/_eventprocessor_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
)
3030

3131

32-
class EventProcessorMixin(object):
32+
class EventProcessorMixin:
3333

3434
_eventhub_client: Optional[Union[EventHubConsumerClient, EventHubConsumerClientAsync]] = None
3535
_consumer_group: str = ""

sdk/eventhub/azure-eventhub/azure/eventhub/_eventprocessor/checkpoint_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from abc import abstractmethod
88

99

10-
class CheckpointStore(object):
10+
class CheckpointStore:
1111
"""CheckpointStore deals with the interaction with the chosen storage service.
1212
1313
It can list and claim partition ownerships as well as list and save checkpoints.

sdk/eventhub/azure-eventhub/azure/eventhub/_eventprocessor/in_memory_checkpoint_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
_LOGGER = logging.getLogger(__name__)
1313

1414

15-
class _TrieNode(object):
15+
class _TrieNode:
1616
def __init__(self, value, is_leaf):
1717
self.value = value
1818
self.is_leaf = is_leaf
@@ -64,7 +64,7 @@ def _set_ele_trie(root, ele, keys_path, path_index):
6464
_set_ele_trie(next_node, ele, keys_path, path_index + 1)
6565

6666

67-
class _DictTrie(object):
67+
class _DictTrie:
6868
def __init__(self, root_name, keys_path):
6969
self._root = _TrieNode(root_name, False)
7070
self._keys_path = keys_path

sdk/eventhub/azure-eventhub/azure/eventhub/_eventprocessor/ownership_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .._producer_client import EventHubProducerClient
1818

1919

20-
class OwnershipManager(object): # pylint:disable=too-many-instance-attributes
20+
class OwnershipManager: # pylint:disable=too-many-instance-attributes
2121
"""Increases or decreases the number of partitions owned by an EventProcessor
2222
so the number of owned partitions are balanced among multiple EventProcessors
2323

sdk/eventhub/azure-eventhub/azure/eventhub/_eventprocessor/partition_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .._common import EventData
1717

1818

19-
class PartitionContext(object):
19+
class PartitionContext:
2020
"""Contains partition related context information.
2121
2222
A `PartitionContext` instance will be passed to the event, error and initialization callbacks defined

sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_local_timeout(now, idle_timeout, last_frame_received_time):
5858
return False
5959

6060

61-
class Connection(object): # pylint:disable=too-many-instance-attributes
61+
class Connection: # pylint:disable=too-many-instance-attributes
6262
"""An AMQP Connection.
6363
6464
:ivar str state: The connection state.

0 commit comments

Comments
 (0)