def _CanDelete(self, cls):
    'Checks whether this class can be deleted.\n\n    Returns whether all occurences of this class as a type were due to\n    constants we removed.\n\n    Arguments:\n      cls: A pytd.Class.\n    Returns:\n      True if we can delete this class.\n    '
    if (not self._processed_count[cls.name]):
        return False
    return (self._processed_count[cls.name] == self._total_count[cls.name])
Checks whether this class can be deleted.

Returns whether all occurences of this class as a type were due to
constants we removed.

Arguments:
  cls: A pytd.Class.
Returns:
  True if we can delete this class.
def _CanDelete(self, cls):
    'Checks whether this class can be deleted.\n\n    Returns whether all occurences of this class as a type were due to\n    constants we removed.\n\n    Arguments:\n      cls: A pytd.Class.\n    Returns:\n      True if we can delete this class.\n    '
    if (not self._processed_count[cls.name]):
        return False
    return (self._processed_count[cls.name] == self._total_count[cls.name])