Skip to content

Commit 94059c8

Browse files
committed
Remove unnecessary pylint: disable=no-member
This rule is now disabled globally, as it is already checked by `mypy` and `pylint` have some false positives, like this one. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 010506d commit 94059c8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/frequenz/channels/_receiver.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ async def receive(self) -> ReceiverMessageT_co: # noqa: DOC503
237237
# introduced by __anext__.
238238
if (
239239
isinstance(exc.__cause__, ReceiverStoppedError)
240-
# pylint is not smart enough to figure out we checked above
241-
# this is a ReceiverStoppedError and thus it does have
242-
# a receiver member
243-
and exc.__cause__.receiver is self # pylint: disable=no-member
240+
and exc.__cause__.receiver is self
244241
):
245242
raise exc.__cause__
246243
raise ReceiverStoppedError(self) from exc

0 commit comments

Comments
 (0)