Update Union typing (4) [Py310] (#86427)
This commit is contained in:
parent
b0ed0d5d41
commit
8abce25948
11 changed files with 39 additions and 37 deletions
|
@ -7,7 +7,7 @@ import logging
|
|||
import os
|
||||
import ssl
|
||||
from tempfile import NamedTemporaryFile
|
||||
from typing import Any, Final, TypedDict, Union, cast
|
||||
from typing import Any, Final, TypedDict, cast
|
||||
|
||||
from aiohttp import web
|
||||
from aiohttp.typedefs import StrOrURL
|
||||
|
@ -498,7 +498,7 @@ async def start_http_server_and_save_config(
|
|||
|
||||
if CONF_TRUSTED_PROXIES in conf:
|
||||
conf[CONF_TRUSTED_PROXIES] = [
|
||||
str(cast(Union[IPv4Network, IPv6Network], ip).network_address)
|
||||
str(cast(IPv4Network | IPv6Network, ip).network_address)
|
||||
for ip in conf[CONF_TRUSTED_PROXIES]
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue