Skip to content

Commit

Permalink
refactor: De-duplicate stubs merging log message
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jul 17, 2023
1 parent 56e407a commit cedc062
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/griffe/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def set_member(self, key: str | Sequence[str], value: Object | Alias) -> None:
if member.is_module and not (member.is_namespace_package or member.is_namespace_subpackage):
with suppress(AliasResolutionError, CyclicAliasError):
if value.is_module and value.filepath != member.filepath:
logger.debug(f"Trying to merge {member.filepath} and {value.filepath}")
with suppress(ValueError):
value = merge_stubs(member, value) # type: ignore[arg-type]
for alias in member.aliases.values():
Expand Down

0 comments on commit cedc062

Please sign in to comment.