Spaces:
Running
Running
from dataclasses import dataclass | |
from typing import List | |
class NFLConference: | |
name: str | |
short_name: str | |
def __post_init__(self): | |
ALL_CONFERENCES.append(self) | |
ALL_CONFERENCES: List[NFLConference] = [] | |
NFC = NFLConference(name="National Football Conference", short_name="NFC") | |
AFC = NFLConference(name="American Football Conference", short_name="AFC") | |