Skip to content

Commit 4f03ae2

Browse files
committed
sphinx-autodoc-fastmcp(fix[collector]): drop stale type: ignore comment
why: The # type: ignore[assignment] on the except-branch null assignment was unused — mypy never generated an assignment error there because the imported names were unbound in the except path. what: - Remove # type: ignore[assignment] from _collector.py line 486
1 parent ca8e77f commit 4f03ae2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/sphinx-autodoc-fastmcp/src/sphinx_autodoc_fastmcp

packages/sphinx-autodoc-fastmcp/src/sphinx_autodoc_fastmcp/_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def collect_prompts_and_resources(app: Sphinx) -> None:
483483
"sphinx_autodoc_fastmcp: could not import fastmcp types",
484484
exc_info=True,
485485
)
486-
_Prompt = _Resource = _ResourceTemplate = None # type: ignore[assignment]
486+
_Prompt = _Resource = _ResourceTemplate = None
487487

488488
if _Prompt is not None:
489489
for component in _iter_components(server):

0 commit comments

Comments
 (0)