Skip to content

Commit 69449dd

Browse files
committed
Adds missing note attribute to player
1 parent 3811328 commit 69449dd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mlbstatsapi/models/people/people.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,16 @@ class Player(Person):
179179
status :
180180
Status of the player
181181
parentteamid : int
182-
parent team id
182+
parent team id
183+
note : str
184+
Optional str that allows a note to be added to a player. Such cases seen
185+
include injury notes.
183186
"""
184187
parentteamid: Optional[int] = None
185188
jerseynumber: str
186189
position: InitVar[dict]
187190
status: Union[Status, dict]
191+
note: Optional[str] = None
188192

189193
def __post_init__(self, position: dict):
190194
self.primaryposition = Position(**position) if position else None

0 commit comments

Comments
 (0)