Update pylint to 2.13.2 (#68704)

This commit is contained in:
Marc Mueller 2022-03-27 16:08:24 +02:00 committed by GitHub
parent ea2b5a80db
commit 53110f8cb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 34 additions and 16 deletions

View file

@ -132,6 +132,7 @@ def websocket_command(
def decorate(func: const.WebSocketCommandHandler) -> const.WebSocketCommandHandler:
"""Decorate ws command function."""
# pylint: disable=protected-access
func._ws_schema = messages.BASE_COMMAND_MESSAGE_SCHEMA.extend(schema) # type: ignore[attr-defined]
func._ws_command = command # type: ignore[attr-defined]
return func