def get_updated_state(self, current_stream_state: MutableMapping[(str, Any)], latest_record: Mapping[(str, Any)]) -> Mapping[(str, Any)]:
    "\n        Return the latest state by comparing the cursor value in the latest record with the stream's most recent state object\n        and returning an updated state object.\n        "
    latest_state = latest_record.get(self.cursor_field)
    current_state = (current_stream_state.get(self.cursor_field) or latest_state)
    if current_state:
        return {self.cursor_field: max(latest_state, current_state)}
    return {}
Return the latest state by comparing the cursor value in the latest record with the stream's most recent state object
and returning an updated state object.
def get_updated_state(self, current_stream_state: MutableMapping[(str, Any)], latest_record: Mapping[(str, Any)]) -> Mapping[(str, Any)]:
    "\n        Return the latest state by comparing the cursor value in the latest record with the stream's most recent state object\n        and returning an updated state object.\n        "
    latest_state = latest_record.get(self.cursor_field)
    current_state = (current_stream_state.get(self.cursor_field) or latest_state)
    if current_state:
        return {self.cursor_field: max(latest_state, current_state)}
    return {}