statcast_batter asserts that its parameters are not None, but does not reassign the parameters after the call to sanitize_input, leading to failure when end_dt is left as None. This commit reassigns the inputs from sanitize_input. player_id is not reassigned to avoid typing errors, since sanitize_input turns it into a string but split_request still expects an integer. Closes #255
statcast_batter
asserts that its parameters are notNone
, but does not reassign the parameters after the call tosanitize_input
, leading to failure whenend_dt
is left asNone
. This commit reassigns the inputs fromsanitize_input
.player_id
is not reassigned to avoid typing errors, sincesanitize_input
turns it into a string butsplit_request
still expects an integer. Closes #255