Skip to content

refactor(api): remove MethodView type ignores from controller tests#36198

Open
WOLIKIMCHENG wants to merge 1 commit into
langgenius:mainfrom
WOLIKIMCHENG:refactor-methodview-type-ignores
Open

refactor(api): remove MethodView type ignores from controller tests#36198
WOLIKIMCHENG wants to merge 1 commit into
langgenius:mainfrom
WOLIKIMCHENG:refactor-methodview-type-ignores

Conversation

@WOLIKIMCHENG
Copy link
Copy Markdown

Summary

  • Remove 8 unnecessary # type: ignore[attr-defined] suppressions from controller unit tests.
  • Keep the change scoped to test-only MethodView import shims.

Part of #24494. This does not fix the whole issue.

Verification

  • uv run --project api --with ruff ruff check <8 controller test files>
  • cd api && uv run pytest -o addopts='' <8 controller test files>

Result:

  • Ruff: All checks passed.
  • Pytest: 50 passed, 3 warnings.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. refactor labels May 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 0.00% 43.69% +43.69%
Strict coverage 0.00% 43.22% +43.22%
Typed symbols 0 22,072 +22,072
Untyped symbols 0 28,758 +28,758
Modules 0 2554 +2,554

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

Labels

refactor size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant