Skip to content

Commit

Permalink
fix: solve mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aquemy committed Dec 21, 2022
1 parent 0b4c41f commit e3e7788
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pandas_profiling/compare_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,7 @@ def compare(
if len(reports) == 1:
return reports[0]

_config = None
if config is None:
_config = Settings()
else:
_config = config.copy()

_config = Settings() if config is None else config.copy()
if all(isinstance(report, ProfileReport) for report in reports):
# Type ignore is needed as mypy does not pick up on the type narrowing
# Consider using TypeGuard (3.10): https://docs.python.org/3/library/typing.html#typing.TypeGuard
Expand Down

0 comments on commit e3e7788

Please sign in to comment.