(self)
return len(self.errors) + child_errors
The total number of errors in the entire tree, including children.
The total number of errors in the entire tree, including children.
The total number of errors in the entire tree including children .
def total_errors(self):
        """
        The total number of errors in the entire tree, including children.
        """

        child_errors = sum(len(tree) for _, tree in self._contents.items())
        return len(self.errors) + child_errors
def total_errors ( self ) : child_errors = sum ( len ( tree ) for _ , tree in self . _contents . items ( ) ) return len ( self . errors ) + child_errors