djcunningham0/multielo

minor -- fix type hint for update_rating method

djcunningham0 opened this issue · 0 comments

Very minor, but the type hint should be updated for the date parameter in Player.update_rating. It can be pretty much any value that can be sorted (e.g., datetime objects), not just floats or strings.

def update_rating(self, new_rating: float, date: Union[str, float], keep_history: bool = True):