aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/apis/cloudflare/zones.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-04-27 22:26:24 +0100
committerGravatar Chris Lovering <[email protected]>2023-04-27 22:26:24 +0100
commitd6a95edbc1b4cdb0e9dad5902c5b270c962453e8 (patch)
tree86ead71bb3b5d57f886b77a45455d43bfa2cd5ec /arthur/apis/cloudflare/zones.py
parentReplace Flake8 and various linting plugins with ruff (diff)
Fix linting errors from new ruff rules
Diffstat (limited to 'arthur/apis/cloudflare/zones.py')
-rw-r--r--arthur/apis/cloudflare/zones.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/arthur/apis/cloudflare/zones.py b/arthur/apis/cloudflare/zones.py
index 7d407a0..1139d25 100644
--- a/arthur/apis/cloudflare/zones.py
+++ b/arthur/apis/cloudflare/zones.py
@@ -1,5 +1,4 @@
"""APIs for managing Cloudflare zones."""
-from typing import Optional
import aiohttp
@@ -10,7 +9,7 @@ AUTH_HEADER = {"Authorization": f"Bearer {CONFIG.cloudflare_token}"}
async def list_zones(
session: aiohttp.ClientSession,
- zone_name: Optional[str] = None,
+ zone_name: str | None = None,
) -> dict[str, str]:
"""List all Cloudflare zones."""
endpoint = "https://api.cloudflare.com/client/v4/zones"