Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
335 stars 103 forks source link

[BUG] Remove colon (':') from "Returns" keywords in comments #1203

Open kexugit opened 1 year ago

kexugit commented 1 year ago

Investigative information

Please provide the following:

Repro steps

  1. Go to https://learn.microsoft.com/en-us/python/api/azure-functions/azure.functions.servicebus.servicebusmessage?branch=live&view=azure-python#azure-functions-servicebus-servicebusmessage-metadata
  2. Notice that "Returns:" for the attribute "metadata" is rendered as H1 header, which is a violation of content validation rules for Learn.microsoft.com.

Expected behavior

"Returns:" should not be rendered as H1 header.

Actual behavior

"Returns:" is rendered as H1 header.

Known workarounds

According to the official documentation of numpy docstring, there shouldn't be a colon ( : ) after keyword "Returns". E.g., https://www.sphinx-doc.org/en/master/usage/extensions/example_numpy.html.

Contents of the requirements.txt file:

Provide the requirements.txt file to help us find out module related issues.

Related information

EvanR-Dev commented 9 months ago

Tracking this in this issue: Azure Functions Reference Documentation is out of date for azure.functions · Issue #59 · Azure/azure-functions-pyfx-planning (github.com)