Skip to content

Commit b7a5d62

Browse files
committed
WIP
1 parent e0d375a commit b7a5d62

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

pandas/io/formats/excel.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def __init__(
8585
**kwargs,
8686
):
8787
if css_styles and css_converter:
88-
css = ";".join(a + ":" + str(v) for (a, v) in css_styles[css_row, css_col])
88+
css = ";".join(
89+
[a + ":" + str(v) for (a, v) in css_styles[css_row, css_col]]
90+
)
8991
style = css_converter(css)
9092

9193
return super().__init__(row=row, col=col, val=val, style=style, **kwargs)

pandas/io/json/_json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def _combine_lines(self, lines) -> str:
724724
Combines a list of JSON objects into one JSON object.
725725
"""
726726
return (
727-
f'[{",".join((line for line in (line.strip() for line in lines) if line))}]'
727+
f'[{",".join([line for line in (line.strip() for line in lines) if line])}]'
728728
)
729729

730730
def read(self):

pandas/io/pytables.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2040,10 +2040,10 @@ def __repr__(self) -> str:
20402040
map(pprint_thing, (self.name, self.cname, self.axis, self.pos, self.kind))
20412041
)
20422042
return ",".join(
2043-
(
2043+
[
20442044
f"{key}->{value}"
20452045
for key, value in zip(["name", "cname", "axis", "pos", "kind"], temp)
2046-
)
2046+
]
20472047
)
20482048

20492049
def __eq__(self, other: Any) -> bool:
@@ -2341,10 +2341,10 @@ def __repr__(self) -> str:
23412341
)
23422342
)
23432343
return ",".join(
2344-
(
2344+
[
23452345
f"{key}->{value}"
23462346
for key, value in zip(["name", "cname", "dtype", "kind", "shape"], temp)
2347-
)
2347+
]
23482348
)
23492349

23502350
def __eq__(self, other: Any) -> bool:

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ ignore =
106106
B301,
107107
# single-letter variables
108108
PDF023
109+
# "use 'pandas._testing' instead" in non-test code
110+
PDF025
109111
exclude =
110112
doc/sphinxext/*.py,
111113
doc/build/*.py,

0 commit comments

Comments
 (0)