Merge branch 'tweak/remove-pylint-deprecations' into 'master'

Remove deprecated pylint rules

See merge request crafty-controller/crafty-4!339
This commit is contained in:
Iain Powrie 2022-06-13 21:41:39 +00:00
commit 10474ffe9d
2 changed files with 2 additions and 7 deletions

View File

@ -78,9 +78,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=C0330,
C0326,
abstract-method,
disable=abstract-method,
attribute-defined-outside-init,
bad-inline-option,
bare-except,
@ -102,7 +100,6 @@ disable=C0330,
no-else-break,
no-else-continue,
no-else-return,
no-self-use,
no-value-for-parameter,
not-an-iterable,
protected-access,

View File

@ -17,9 +17,7 @@ class WebSocketHelper:
def remove_client(self, client):
self.clients.remove(client)
def send_message(
self, client, event_type: str, data
): # pylint: disable=no-self-use
def send_message(self, client, event_type: str, data):
if client.check_auth():
message = str(json.dumps({"event": event_type, "data": data}))
client.write_message_helper(message)