Replace pylint protected-access with Ruff SLF001 (#115735)
This commit is contained in:
parent
460c05dc43
commit
b456d97e65
90 changed files with 168 additions and 223 deletions
|
@ -295,7 +295,7 @@ class WebSocketHandler:
|
|||
EVENT_HOMEASSISTANT_STOP, self._async_handle_hass_stop
|
||||
)
|
||||
|
||||
writer = wsock._writer # pylint: disable=protected-access
|
||||
writer = wsock._writer # noqa: SLF001
|
||||
if TYPE_CHECKING:
|
||||
assert writer is not None
|
||||
|
||||
|
@ -378,7 +378,7 @@ class WebSocketHandler:
|
|||
# added a way to set the limit, but there is no way to actually
|
||||
# reach the code to set the limit, so we have to set it directly.
|
||||
#
|
||||
writer._limit = 2**20 # pylint: disable=protected-access
|
||||
writer._limit = 2**20 # noqa: SLF001
|
||||
async_handle_str = connection.async_handle
|
||||
async_handle_binary = connection.async_handle_binary
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue