def num_rings(self):
		"""The number of rings a device with
		the :attr:`~libinput.constant.DeviceCapability.TABLET_PAD`
		capability provides.

		Returns:
			int: The number of rings or 0 if the device has no rings.
		Raises:
			AttributeError
		"""

		num = self._libinput.libinput_device_tablet_pad_get_num_rings(
			self._handle)
		if num < 0:
			raise AttributeError('This device is not a tablet pad device')
		return num
The number of rings a device with
		the :attr:`~libinput.constant.DeviceCapability.TABLET_PAD`
		capability provides.

		Returns:
			int: The number of rings or 0 if the device has no rings.
		Raises:
			AttributeError