File size: 388 Bytes
ac8c5cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from dataclasses import dataclass
from typing import List


@dataclass
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")