Skip to content

Commit b0e6e17

Browse files
committed
pre-commit checks reformat
1 parent 82dd492 commit b0e6e17

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/core/generic.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6040,7 +6040,12 @@ def __finalize__(self, other, method: str | None = None, **kwargs) -> Self:
60406040
if all(bool(obj.attrs) for obj in objs):
60416041
# all concatenate arguments have non-empty attrs
60426042
attrs = objs[0].attrs
6043-
have_same_attrs = all((obj.attrs == attrs).all() if isinstance(obj.attrs, np.darray) else obj.attrs == attrs for obj in objs[1:])
6043+
have_same_attrs = all(
6044+
(obj.attrs == attrs).all()
6045+
if isinstance(obj.attrs, np.darray)
6046+
else obj.attrs == attrs
6047+
for obj in objs[1:]
6048+
)
60446049
if have_same_attrs:
60456050
self.attrs = deepcopy(attrs)
60466051

0 commit comments

Comments
 (0)