KOSASIH / cosmic-pi-network

Consider using f-strings PYL-C0209
Performance
Minor
3 months ago3 months old
Formatting a regular string which could be a f-string
11        elif isinstance(other, np.ndarray):
12            return np.dot(self.matrix, other)
13        else:
14            raise TypeError("Unsupported operand type for *: '{}' and '{}'".format(type(self).__name__, type(other).__name__))15
16    def __str__(self):
17        return str(self.matrix)