From 9165c6ebac383b441839989fc5473334a77fe57f Mon Sep 17 00:00:00 2001 From: QuaKe <67868381+quakecodes@users.noreply.github.com> Date: Wed, 8 Feb 2023 23:34:09 +0000 Subject: [PATCH] Fix Python 3.7 and 3.8 bug --- pypartpicker/scraper.py | 3 ++- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pypartpicker/scraper.py b/pypartpicker/scraper.py index c6d4c85..e43a777 100644 --- a/pypartpicker/scraper.py +++ b/pypartpicker/scraper.py @@ -2,6 +2,7 @@ import concurrent.futures import math import re +from typing import List import requests from pypartpicker.regex import LIST_REGEX, PRODUCT_REGEX @@ -197,7 +198,7 @@ def fetch_list(self, list_url) -> PCPPList: compatibility=compatibilitynotes, ) - def part_search(self, search_term, **kwargs) -> list[Part]: + def part_search(self, search_term, **kwargs) -> List[Part]: search_term = search_term.replace(" ", "+") limit = kwargs.get("limit", 20) diff --git a/setup.py b/setup.py index d906f50..2dc9d7c 100644 --- a/setup.py +++ b/setup.py @@ -5,14 +5,14 @@ setup( name="pypartpicker", - version="1.9.2", + version="1.9.3", description="A package that scrapes pcpartpicker.com and returns the results as objects.", packages=["pypartpicker"], url="https://github.com/thefakequake/pypartpicker", keywords=["pcpartpicker", "scraper", "list", "beautifulsoup", "pc", "parts"], install_requires=["bs4", "requests"], zip_safe=False, - download_url="https://github.com/thefakequake/pypartpicker/archive/refs/tags/v1.9.2.tar.gz", + download_url="https://github.com/thefakequake/pypartpicker/archive/refs/tags/v1.9.3.tar.gz", long_description=long_description, long_description_content_type="text/markdown", classifiers=[