(self)
Invalidate the cached counts.
Invalidate the cached counts.
Invalidate the cached counts .
def invalidateCounts(self) -> None:
        """
        Invalidate the cached counts.
        """
        self.__counts_cache = None
        # emit the change for the whole model
        self.dataChanged.emit(
            self.index(0), self.index(self.rowCount() - 1), [MultiplicityRole]
        )
def invalidateCounts ( self ) -> None : self . __counts_cache = None # emit the change for the whole model self . dataChanged . emit ( self . index ( 0 ) , self . index ( self . rowCount ( ) - 1 ) , [ MultiplicityRole ] )