Skip to content

Commit

Permalink
Merge pull request #439 from Josverl/sourcery/dev/enrich_frozen
Browse files Browse the repository at this point in the history
Dev/enrich frozen (Sourcery refactored)
  • Loading branch information
Josverl authored Oct 29, 2023
2 parents 5e36dbe + 39245bb commit f8c1779
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/stubber/commands/get_frozen_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,13 @@ def cli_get_frozen(
)
if docstubs_path.exists():
log.info(f"Enriching {str(stub_path)} with {docstubs_path}")
merged = enrich_folder(
stub_path, docstubs_path, show_diff=False, write_back=True, require_docstub=False
)
if merged:
if merged := enrich_folder(
stub_path,
docstubs_path,
show_diff=False,
write_back=True,
require_docstub=False,
):
log.info(f"Enriched {merged} frozen modules from docstubs")
else:
log.info(f"No docstubs found at {docstubs_path}")
Expand Down

0 comments on commit f8c1779

Please sign in to comment.