mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove deprecated pylint rules
https://github.com/PyCQA/pylint/pull/3571 https://github.com/PyCQA/pylint/pull/3577
This commit is contained in:
parent
55f7ab1d35
commit
75d3baccbd
@ -78,9 +78,7 @@ confidence=
|
|||||||
# --enable=similarities". If you want to run only the classes checker, but have
|
# --enable=similarities". If you want to run only the classes checker, but have
|
||||||
# no Warning level messages displayed, use "--disable=all --enable=classes
|
# no Warning level messages displayed, use "--disable=all --enable=classes
|
||||||
# --disable=W".
|
# --disable=W".
|
||||||
disable=C0330,
|
disable=abstract-method,
|
||||||
C0326,
|
|
||||||
abstract-method,
|
|
||||||
attribute-defined-outside-init,
|
attribute-defined-outside-init,
|
||||||
bad-inline-option,
|
bad-inline-option,
|
||||||
bare-except,
|
bare-except,
|
||||||
@ -102,7 +100,6 @@ disable=C0330,
|
|||||||
no-else-break,
|
no-else-break,
|
||||||
no-else-continue,
|
no-else-continue,
|
||||||
no-else-return,
|
no-else-return,
|
||||||
no-self-use,
|
|
||||||
no-value-for-parameter,
|
no-value-for-parameter,
|
||||||
not-an-iterable,
|
not-an-iterable,
|
||||||
protected-access,
|
protected-access,
|
||||||
|
@ -19,7 +19,7 @@ class WebSocketHelper:
|
|||||||
|
|
||||||
def send_message(
|
def send_message(
|
||||||
self, client, event_type: str, data
|
self, client, event_type: str, data
|
||||||
): # pylint: disable=no-self-use
|
):
|
||||||
if client.check_auth():
|
if client.check_auth():
|
||||||
message = str(json.dumps({"event": event_type, "data": data}))
|
message = str(json.dumps({"event": event_type, "data": data}))
|
||||||
client.write_message_helper(message)
|
client.write_message_helper(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user