Commit 2a5210b
committed
Disable too-many-branches check for component proto
When converting electrical components from protobuf, we have a big match
statement to dispatch the different component categories to the right
conversion function. It is fine in this case to have a lot of branching.
The alternative would be to do a dict-based dispatch but we lose
exhaustiveness checks, or we need to use a typed-dict, adding
unnecessary complexity.
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>1 parent 7f3973e commit 2a5210b
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
0 commit comments