Skip to content

Update protobuf import to avoid pylint errors #774

@daniel-zullo-frequenz

Description

@daniel-zullo-frequenz

What's needed?

Remove the pylint no-name-in-module disable comments in src/frequenz/sdk/microgrid/client/_client.py.

Proposed solution

Update import to avoid the pylint error no-name-in-module as follows:

From:

from google.protobuf.empty_pb2 import Empty  # pylint: disable=no-name-in-module

To:

from google.protobuf import empty_pb2

Once the change above is made, use empty_pb2.Empty instead and remove all the comments to disable the pylint error in src/frequenz/sdk/microgrid/client/_client.py

Additional context

Suggested in #708 (review)

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions