Add type ignore error codes [helpers] (#66776)
This commit is contained in:
parent
0188e8b319
commit
bfb1abd3a2
12 changed files with 25 additions and 23 deletions
|
@ -104,9 +104,9 @@ def _async_create_clientsession(
|
|||
# If a package requires a different user agent, override it by passing a headers
|
||||
# dictionary to the request method.
|
||||
# pylint: disable=protected-access
|
||||
clientsession._default_headers = MappingProxyType({USER_AGENT: SERVER_SOFTWARE}) # type: ignore
|
||||
clientsession._default_headers = MappingProxyType({USER_AGENT: SERVER_SOFTWARE}) # type: ignore[assignment]
|
||||
|
||||
clientsession.close = warn_use(clientsession.close, WARN_CLOSE_MSG) # type: ignore
|
||||
clientsession.close = warn_use(clientsession.close, WARN_CLOSE_MSG) # type: ignore[assignment]
|
||||
|
||||
if auto_cleanup_method:
|
||||
auto_cleanup_method(hass, clientsession)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue