types: truthy-functions are a thing now in mypy

This commit is contained in:
Iain Learmonth 2022-11-14 12:16:41 +00:00
parent 356495beaf
commit a2b73a9286

View file

@ -18,7 +18,7 @@ PROXY_PROVIDERS = {p.provider: p for p in [ # In order of preference
ProxyCloudfrontAutomation,
ProxyFastlyAutomation,
ProxyAzureCdnAutomation
] if p.enabled}
] if p.enabled} # type: ignore[truthy-function]
def create_proxy(pool: Pool, origin: Origin) -> bool: