Skip to content

Commit

Permalink
Add exclusion for unnecessary-lambda check
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Feb 15, 2024
1 parent a2ad939 commit 916d2cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions idaes/core/util/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ def stream_table_dataframe_to_string(stream_table, **kwargs):
# Set some default values for keyword arguments
na_rep = kwargs.pop("na_rep", "-")
justify = kwargs.pop("justify", "center")
# the lambda here could be replaced by "{:#.5g}".format,
# but arguably that's not as clearly identifiable as a function/callable
# pylint: disable-next=unnecessary-lambda
float_format = kwargs.pop("float_format", lambda x: "{:#.5g}".format(x))

# Print stream table
Expand Down

0 comments on commit 916d2cb

Please sign in to comment.