Skip to content

Commit 7a9d5cc

Browse files
topper-123jbrockmendel
authored andcommitted
CLN: convert lambda to function (pandas-dev#35117)
1 parent 9b39dbf commit 7a9d5cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pandas/io/formats/printing.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,13 @@ class TableSchemaFormatter(BaseFormatter):
276276
formatters[mimetype].enabled = False
277277

278278

279-
default_pprint = lambda x, max_seq_items=None: pprint_thing(
280-
x, escape_chars=("\t", "\r", "\n"), quote_strings=True, max_seq_items=max_seq_items
281-
)
279+
def default_pprint(thing: Any, max_seq_items: Optional[int] = None) -> str:
280+
return pprint_thing(
281+
thing,
282+
escape_chars=("\t", "\r", "\n"),
283+
quote_strings=True,
284+
max_seq_items=max_seq_items,
285+
)
282286

283287

284288
def format_object_summary(

0 commit comments

Comments
 (0)