MySQL Connector/Python Release Notes
Syntax:
cursor.clear_attributes()
Clear the list of query attributes on the connector's side, as set by Section 10.5.2, “MySQLCursor.add_attribute() Method”.
This method was added in Connector/Python 8.0.26.