Skip to content

Commit

Permalink
[EventHub] fix pylint plugin errors (Azure#23977)
Browse files Browse the repository at this point in the history
fix new pylint rules:
- C4747: enum-must-inherit-case-insensitive-enum-meta
- C4748: client-accepts-api-version-keyword
  • Loading branch information
swathipil authored Apr 19, 2022
1 parent 6fbaf78 commit caeb3b4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
_LOGGER = logging.getLogger(__name__)


class EventHubConsumerClient(ClientBase):
class EventHubConsumerClient(ClientBase): # pylint: disable=client-accepts-api-version-keyword
"""The EventHubConsumerClient class defines a high level interface for
receiving events from the Azure Event Hubs service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
_LOGGER = logging.getLogger(__name__)


class EventHubProducerClient(ClientBase):
class EventHubProducerClient(ClientBase): # pylint: disable=client-accepts-api-version-keyword
# pylint: disable=too-many-instance-attributes
"""The EventHubProducerClient class defines a high level interface for
sending events to the Azure Event Hubs service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
_LOGGER = logging.getLogger(__name__)


class EventHubConsumerClient(ClientBaseAsync):
class EventHubConsumerClient(ClientBaseAsync): # pylint: disable=client-accepts-api-version-keyword
"""The EventHubConsumerClient class defines a high level interface for
receiving events from the Azure Event Hubs service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
_LOGGER = logging.getLogger(__name__)


class EventHubProducerClient(ClientBaseAsync):
class EventHubProducerClient(ClientBaseAsync): # pylint: disable=client-accepts-api-version-keyword
# pylint: disable=too-many-instance-attributes
"""
The EventHubProducerClient class defines a high level interface for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
from enum import Enum

from uamqp import MessageBodyType
from azure.core import CaseInsensitiveEnumMeta


class AmqpMessageBodyType(str, Enum):
class AmqpMessageBodyType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DATA = "data"
SEQUENCE = "sequence"
VALUE = "value"
Expand Down

0 comments on commit caeb3b4

Please sign in to comment.