From f0ff51c94a32328cf5aedb38b21d4d9b2f9a8450 Mon Sep 17 00:00:00 2001 From: Crinibus <57172157+Crinibus@users.noreply.github.com> Date: Thu, 9 Nov 2023 23:15:27 +0100 Subject: [PATCH] Use build-in 'dict' type hint instead of 'from typing import Dict'' --- scraper/domains.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scraper/domains.py b/scraper/domains.py index b670f607..3e681d9b 100644 --- a/scraper/domains.py +++ b/scraper/domains.py @@ -1,4 +1,3 @@ -from typing import Dict import requests import urllib.parse from bs4 import BeautifulSoup @@ -511,7 +510,7 @@ def get_website_handler(url: str) -> BaseWebsiteHandler: return website_handler(url) -SUPPORTED_DOMAINS: Dict[str, BaseWebsiteHandler] = { +SUPPORTED_DOMAINS: dict[str, BaseWebsiteHandler] = { "komplett": KomplettHandler, "proshop": ProshopHandler, "computersalg": ComputerSalgHandler,