(self)
return s
Human readable description of this container type.

        :return: string to be printed
Human readable description of this container type.
Human readable description of this container type .
def description(self) -> str:
        """Human readable description of this container type.

        :return: string to be printed
        """
        container = 'dict' if self.container is dict else 'array'
        if isinstance(self.contains, tuple):
            contains = ' | '.join([t.__name__ for t in self.contains])
        else:
            contains = self.contains.__name__
        s = f'{container}[{contains}]'
        if self.pairs:
            s += ' that has even size'
        if not self.allow_empty:
            s += ' that cannot be empty'
        return s
def description ( self ) -> str : container = 'dict' if self . container is dict else 'array' if isinstance ( self . contains , tuple ) : contains = ' | ' . join ( [ t . __name__ for t in self . contains ] ) else : contains = self . contains . __name__ s = f'{container}[{contains}]' if self . pairs : s += ' that has even size' if not self . allow_empty : s += ' that cannot be empty' return s