Skip to content

remove duplicate __init__ docstring in AutoLockRenewer#40562

Merged
l0lawrence merged 1 commit intoAzure:mainfrom
Ikwus:patch-1
Apr 18, 2025
Merged

remove duplicate __init__ docstring in AutoLockRenewer#40562
l0lawrence merged 1 commit intoAzure:mainfrom
Ikwus:patch-1

Conversation

@Ikwus
Copy link
Contributor

@Ikwus Ikwus commented Apr 17, 2025

This PR removes the redundant __init__-level docstring from the AutoLockRenewer class, consolidating all parameter documentation into the class-level docstring. This change ensures that the generated documentation correctly displays only four parameter tables, avoiding duplication.

https://learn.microsoft.com/en-us/python/api/azure-servicebus/azure.servicebus.autolockrenewer?view=azure-python

  • Deleted the __init__ docstring block.
  • Centralized parameter descriptions in the class-level docstring.
  • Verified that Sphinx/AutoAPI generates the correct number of parameter tables.

This update prevents incorrect "required" flags on defaulted parameters and maintains clarity in the API reference documentation.

Checklist

  • The pull request does not introduce breaking changes.
  • CHANGELOG update is not required.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • The title of the pull request is clear and informative.
  • There are a small number of commits, each with an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

The class- and __init__-level docstrings for AutoLockRenewer both contained
identical parameter descriptions, causing eight parameter tables to appear
instead of the intended four. This commit removes the __init__ docstring
block and centralizes all documentation in the class-level docstring.

- Delete duplicate docstring in __init__.
- Retain summary and Attributes section in class-level docstring.
- Ensure Sphinx/AutoAPI generates only the correct four parameters.

This prevents erroneous “required” flags on defaulted parameters and keeps the
API reference clean and accurate.
Copilot AI review requested due to automatic review settings April 17, 2025 03:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@github-actions github-actions bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Bus labels Apr 17, 2025
@github-actions
Copy link

Thank you for your contribution @Ikwus! We will review the pull request and get back to you soon.

@Ikwus
Copy link
Contributor Author

Ikwus commented Apr 17, 2025

@microsoft-github-policy-service agree

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@l0lawrence
Copy link
Member

Thanks @Ikwus

@l0lawrence l0lawrence merged commit 32a2eac into Azure:main Apr 18, 2025
30 checks passed
cRui861 pushed a commit that referenced this pull request May 14, 2025
The class- and __init__-level docstrings for AutoLockRenewer both contained
identical parameter descriptions, causing eight parameter tables to appear
instead of the intended four. This commit removes the __init__ docstring
block and centralizes all documentation in the class-level docstring.

- Delete duplicate docstring in __init__.
- Retain summary and Attributes section in class-level docstring.
- Ensure Sphinx/AutoAPI generates only the correct four parameters.

This prevents erroneous “required” flags on defaulted parameters and keeps the
API reference clean and accurate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Bus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants