Skip to content

Commit

Permalink
Fix Python 3.7 and 3.8 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thefakequake committed Feb 8, 2023
1 parent ea3925d commit 9165c6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pypartpicker/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 9165c6e

Please sign in to comment.