From d6a95edbc1b4cdb0e9dad5902c5b270c962453e8 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 27 Apr 2023 22:26:24 +0100 Subject: Fix linting errors from new ruff rules --- arthur/apis/cloudflare/zones.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'arthur/apis/cloudflare/zones.py') 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" -- cgit v1.2.3