Skip to content

Commit

Permalink
Merge branch 'master' into welcome-pydoctor-primer
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr authored Nov 17, 2023
2 parents c1566f2 + f54b6ef commit 271c6d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ This is the last major release to support Python 3.7.
* Add support for Python 3.12
* `ExtRegistrar.register_post_processor()` now supports a `priority` argument that is an int.
Highest priority callables will be called first during post-processing.
* Fix too noisy ``--verbose`` mode (suppres some ambiguous annotations warnings).

pydoctor 23.9.1
^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion pydoctor/linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def warn_ambiguous_annotation(self, target:str) -> None:
# report a low-level message about ambiguous annotation
mod_ann = self._module.expandName(target)
obj_ann = self._scope.expandName(target)
if mod_ann != obj_ann:
if mod_ann != obj_ann and '.' in obj_ann and '.' in mod_ann:
self.obj.report(
f'ambiguous annotation {target!r}, could be interpreted as '
f'{obj_ann!r} instead of {mod_ann!r}', section='annotation',
Expand Down

0 comments on commit 271c6d2

Please sign in to comment.