How to read the gimbal attitude (Anafi Python)

What is the python code format (example) for reading the gimbal attitude with gimbal.attitude()?

Found it.
drone.get_state(gimbal.attitude)[‘yaw_absolute’]