class documentation

class Taggable:

View In Hierarchy

A general interface for a taggable.

Method get_tags Returns the collection of the given class of this Taggable.
Method is_tagged_as Checks if all the given tags are contained in this Taggable.
@abstractmethod
def get_tags(self, tag_type=None):

Returns the collection of the given class of this Taggable.

Parameters
tag_type:Optional[Type[Tag]]the class for the search..
Returns
Sequence[Tag]the collection of the given class
@abstractmethod
def is_tagged_as(self, *tags):

Checks if all the given tags are contained in this Taggable.

Parameters
*tags:Tagthe tags of interest.
Returns
booltrue if all the given tags are contained in this Taggable, false otherwise