From 63ff68103fdf012bbb889813a9fbbef876b80657 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:23:48 +0000 Subject: [PATCH] Fix: type checking on Python < 3.10 --- britishcycling_clubs/manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/britishcycling_clubs/manager.py b/britishcycling_clubs/manager.py index 770e7d9..7e2d5df 100644 --- a/britishcycling_clubs/manager.py +++ b/britishcycling_clubs/manager.py @@ -4,10 +4,13 @@ import logging import time from pprint import pformat -from typing import TypedDict, TypeGuard +from typing import TYPE_CHECKING, TypedDict from playwright.sync_api import sync_playwright +if TYPE_CHECKING: + from typing_extensions import TypeGuard + MANAGER_BASE_URL = "https://www.britishcycling.org.uk/uac/connect?success_url=/dashboard/club/membership?club_id=" log = logging.getLogger(__name__)