Skip to content

Commit 1a20fea

Browse files
authored
Update attributes.py
Typo fixed: I meant to set this to None instead of 0
1 parent 25f7906 commit 1a20fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlbstatsapi/models/game/livedata/plays/play/attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class PlayResult:
7474
type: str
7575
awayscore: int
7676
homescore: int
77-
rbi: Optional[int] = 0
77+
rbi: Optional[int] = None
7878
event: Optional[str] = None
7979
eventtype: Optional[str] = None
8080
description: Optional[str] = None
@@ -108,4 +108,4 @@ class PlayReviewDetails:
108108

109109
def __repr__(self) -> str:
110110
kws = [f'{key}={value}' for key, value in self.__dict__.items() if value is not None]
111-
return "{}({})".format(type(self).__name__, ", ".join(kws))
111+
return "{}({})".format(type(self).__name__, ", ".join(kws))

0 commit comments

Comments
 (0)