Set required python version to 3.7
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Optional
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel
|
||||
from enum import Enum
|
||||
|
||||
@ -89,7 +89,7 @@ class GameInfoResponse(BaseModel):
|
||||
|
||||
|
||||
class ProductListResponse(BaseModel):
|
||||
products: list[Product]
|
||||
products: List[Product]
|
||||
|
||||
|
||||
class FairHopper:
|
||||
@ -165,7 +165,7 @@ class FairHopper:
|
||||
|
||||
return PlayerInfoResponse(**r.json())
|
||||
|
||||
def get_products(self) -> list[Product]:
|
||||
def get_products(self) -> List[Product]:
|
||||
r = requests.get(self.format_url("/products"))
|
||||
response_data = ProductListResponse(**r.json())
|
||||
return response_data.products
|
||||
|
||||
4
python/poetry.lock
generated
4
python/poetry.lock
generated
@ -215,5 +215,5 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
|
||||
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "a8d95adf4819c22b47d4cac44f18a3bc5040d1c0487ead04cb2f09692de0d411"
|
||||
python-versions = "^3.7"
|
||||
content-hash = "6d7fc4c2ae40fa75f772d15817348dd97078b9aa25ecd3ad52e71bec25732be8"
|
||||
|
||||
@ -7,7 +7,7 @@ readme = "README.md"
|
||||
packages = [{include = "fh_sdk"}]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
python = "^3.7"
|
||||
requests = "^2.28.2"
|
||||
pydantic = "^1.10.7"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user