Skip to content

Commit

Permalink
Fix from_text return type to support 3.9 and 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyizheng02 authored Aug 8, 2024
1 parent 64c2635 commit 068e137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pittapi/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from bs4 import BeautifulSoup
import requests
from typing import NamedTuple, Self
from typing import NamedTuple

GYM_URL = "https://connect2concepts.com/connect2/?type=bar&key=17c2cbcb-ec92-4178-a5f5-c4860330aea0"

Expand All @@ -44,7 +44,7 @@ class Gym(NamedTuple):
percentage: int

@classmethod
def from_text(cls, text: str) -> Self:
def from_text(cls, text: str) -> Gym:
info = text.split("|")
name = info[0]
if len(info) < 4:
Expand Down

0 comments on commit 068e137

Please sign in to comment.