Opt-out of linting on the special cases we have, given new ignore rules

This commit is contained in:
Alex Stokes
2019-08-03 12:45:55 -07:00
committed by Kevin Mai-Husan Chia
parent 03b1304fe7
commit cb301fcc51
3 changed files with 6 additions and 6 deletions

View File

@ -143,7 +143,7 @@ class Pubsub:
# NOTE: Check if `rpc_incoming.control` is set through `HasField`.
# This is necessary because `control` is an optional field in pb2.
# Ref: https://developers.google.com/protocol-buffers/docs/reference/python-generated#singular-fields-proto2
# Ref: https://developers.google.com/protocol-buffers/docs/reference/python-generated#singular-fields-proto2 # noqa: E501
if rpc_incoming.HasField("control"):
# Pass rpc to router so router could perform custom logic
await self.router.handle_rpc(rpc_incoming, peer_id)