Skip to content

Commit ca2abf2

Browse files
committed
Add pylint exception for too-many-branches
When converting a component from its protobuf representation, we need to handle multiple component types, so we end up with multiple branches in the function, but this is OK, so we just silence the pylint warning for that specific case. This is in preparation to the merge to v0.x.x branch, as only the new version detects this case. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent b476f28 commit ca2abf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/client/microgrid/component/_component_proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def component_base_from_proto_with_issues(
199199
)
200200

201201

202-
# pylint: disable-next=too-many-locals
202+
# pylint: disable-next=too-many-locals, too-many-branches
203203
def component_from_proto_with_issues(
204204
message: electrical_components_pb2.ElectricalComponent,
205205
*,

0 commit comments

Comments
 (0)