Skip to content

Remove the unused R TypeVar from async_rpc_client.py #8876

Closed

Description

@aglinxinyuan

Task Summary

amber/src/main/python/core/architecture/rpc/async_rpc_client.py defines R = TypeVar("R"), which nothing in the file or elsewhere uses. TypeVar is imported only for it.

Introduced by #2950 (2024-10-31, "Migrate scala control messages to protobuf"). The same commit expanded the typing import to bring in TypeVar.

Usage removed by: never used. No annotation, Generic[R] or string annotation in the file refers to R, and no module imports it.

This is a pure deletion with no behaviour change.

Task Type

  • Refactor / Cleanup

Activity

  1. added theissue type on Oct 6, 2026
  2. added a commit that references this issue on Oct 6, 2026
    b760489
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions