Skip to content

Commit 55512d0

Browse files
committed
Linting: Avoid extraneous parentheses
Signed-off-by: Christoph Berganski <[email protected]>
1 parent 51b48e2 commit 55512d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onnx_ir/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def shape(self) -> Shape:
839839
@property
840840
def size(self) -> int:
841841
"""The number of elements in the tensor."""
842-
return sum((len(string) for string in self.string_data()))
842+
return sum(len(string) for string in self.string_data())
843843

844844
@property
845845
def nbytes(self) -> int:

0 commit comments

Comments
 (0)