Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed May 13, 2023
1 parent fa05fec commit 649f622
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdoc/render_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ def possible_sources(
yield identifier, ""
return

if len(set(s.partition('.')[0] for s in all_modules)) == 1:
pkgname = next(iter(all_modules)).partition('.')[0]
if len(set(s.partition(".")[0] for s in all_modules)) == 1:
pkgname = next(iter(all_modules)).partition(".")[0]
if not identifier.startswith(pkgname):
identifier = f'{pkgname}.{identifier}'
identifier = f"{pkgname}.{identifier}"

modulename = identifier
qualname = None
Expand Down

0 comments on commit 649f622

Please sign in to comment.