Skip to content

Commit

Permalink
fix: Report removed public modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jul 4, 2023
1 parent eac783c commit 68906cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/griffe/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ def _member_incompatibilities(
try:
new_member = new_obj.members[name]
except KeyError:
if old_member.is_exported(explicitely=False):
is_module = not old_member.is_alias and old_member.is_module
if is_module or old_member.is_exported(explicitely=False):
yield ObjectRemovedBreakage(old_member, old_member, None) # type: ignore[arg-type]
continue

Expand Down

0 comments on commit 68906cb

Please sign in to comment.