Skip to content

docs: fix broken Workbench :meth: cross-references in workbench docstrings#7977

Open
JOJOCrazy123 wants to merge 1 commit into
microsoft:mainfrom
JOJOCrazy123:fix/workbench-meth-refs
Open

docs: fix broken Workbench :meth: cross-references in workbench docstrings#7977
JOJOCrazy123 wants to merge 1 commit into
microsoft:mainfrom
JOJOCrazy123:fix/workbench-meth-refs

Conversation

@JOJOCrazy123

@JOJOCrazy123 JOJOCrazy123 commented Jul 19, 2026

Copy link
Copy Markdown

Why

The Workbench async context manager docstrings reference a class named WorkBench (capital B), which does not exist. The actual class is Workbench, and the class-level docstring in the same file already uses the correct references. As a result, the Sphinx :meth: cross-references in __aenter__ and __aexit__ fail to resolve.

What

Fix the two broken cross-references in python/packages/autogen-core/src/autogen_core/tools/_workbench.py:

- :meth:`~autogen_core.tools.WorkBench.start`  ->  :meth:`~autogen_core.tools.Workbench.start`
- :meth:`~autogen_core.tools.WorkBench.stop`   ->  :meth:`~autogen_core.tools.Workbench.stop`

Docstring-only change; no behavior or API changes. Now consistent with the existing correct references in the Workbench class docstring.

@JOJOCrazy123

Copy link
Copy Markdown
Author

Hi maintainers, this PR is ready for review, but the workflow is still awaiting maintainer approval. Could someone please approve the workflow and review the PR when convenient? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant