Skip to content

Commit 21227d6

Browse files
committed
Replace not x in y with x not in y
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent c9bd845 commit 21227d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frequenz/sdk/actor/power_distributing/power_distributing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def _send_result(self, namespace: str, result: Result) -> None:
217217
namespace: namespace of the sender, to identify the result channel with.
218218
result: Result to send out.
219219
"""
220-
if not namespace in self._result_senders:
220+
if namespace not in self._result_senders:
221221
self._result_senders[namespace] = self._channel_registry.new_sender(
222222
namespace
223223
)

src/frequenz/sdk/timeseries/_quantities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init_subclass__(cls, exponent_unit_map: dict[int, str]) -> None:
6161
ValueError: If the given exponent_unit_map does not contain a base unit
6262
(exponent 0).
6363
"""
64-
if not 0 in exponent_unit_map:
64+
if 0 not in exponent_unit_map:
6565
raise ValueError("Expected a base unit for the type (for exponent 0)")
6666
cls._exponent_unit_map = exponent_unit_map
6767
super().__init_subclass__()

0 commit comments

Comments
 (0)