Spaces:
Sleeping
Sleeping
File size: 827 Bytes
ac8c5cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from dataclasses import dataclass
from typing import List
from domain import conferences
@dataclass
class NFLDivision:
name: str
conference: conferences.NFLConference
def __post_init__(self):
ALL_DIVISIONS.append(self)
ALL_DIVISIONS: List[NFLDivision] = []
NFCWest = NFLDivision(name="NFC West", conference=conferences.NFC)
NFCNorth = NFLDivision(name="NFC North", conference=conferences.NFC)
NFCSouth = NFLDivision(name="NFC South", conference=conferences.NFC)
NFCEast = NFLDivision(name="NFC East", conference=conferences.NFC)
AFCWest = NFLDivision(name="AFC West", conference=conferences.AFC)
AFCNorth = NFLDivision(name="AFC North", conference=conferences.AFC)
AFCSouth = NFLDivision(name="AFC South", conference=conferences.AFC)
AFCEast = NFLDivision(name="AFC East", conference=conferences.AFC)
|