You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
keyword paramtype warns "more than one target found for cross-reference 'list'" #11962
This library also contains a number of classes with methods called list(...).
Instead of resolving list as a python list, sphinx tries to make a cross-reference to the list methods found in the library and shows the following warning:
docstring of azure.mgmt.advisor.models._models_py3.SuppressionContractListResult:1: WARNING: more than one target found for cross-reference 'list': azure.mgmt.advisor.operations.Operations.list, azure.mgmt.advisor.operations.RecommendationMetadataOperations.list, azure.mgmt.advisor.operations.RecommendationsOperations.list, azure.mgmt.advisor.operations.SuppressionsOperations.list
Note that this doesn't occur when using param / type, it seems to specifically be something about using keyword/paramtype.
I can confirm the issue with a smaller MWE (even though the build does not indicate an issue with the reference, but the HTML links are indeed incorrect).
@kristapratico I don't want to merge until I've added some tests, which I'll do this week-end, so you'll need to wait a bit before the fix is released.
Activity
picnixz commentedon Feb 7, 2024
I can confirm the issue with a smaller MWE (even though the build does not indicate an issue with the reference, but the HTML links are indeed incorrect).
kristapratico commentedon Feb 7, 2024
Thanks for the quick resolution @picnixz!
picnixz commentedon Feb 8, 2024
@kristapratico I don't want to merge until I've added some tests, which I'll do this week-end, so you'll need to wait a bit before the fix is released.
kristapratico commentedon Feb 8, 2024
@picnixz no problem. Also, I did verify that your patch does fix the warnings for me. Thanks for your work!
kristapratico commentedon Feb 13, 2024
@picnixz any chance this bug fix will be in the next release? Thanks!
picnixz commentedon Feb 13, 2024
Ah yes, I can push it but I don't have the permissions for pushing it on PyPI.