Skip to content

Incorrect callable function signatures #1814

Closed

Description

@ehsanmok

Across the SDK in different places, the use of typing callable is wrong if it was meant to use Callable. For example, here predictor_cls signature is defined as callable[string, sagemaker.session.Session] and was used like this. If normal Callable was meant (which should be unless specified otherwise) then the last type is the returnType so it should be corrected as something like Callable[[string, sagemaker.session.Session], Any].

Activity

  1. chuyang-deng commented on Aug 6, 2020

    @chuyang-deng
    Contributor

    Hi @ehsanmok,

    Thanks for submitting the issue. The signature is in docstrings and if you are interested in contributing to the repo, please feel free to do so.

  2. pintaoz-aws commented on Feb 13, 2025

    @pintaoz-aws
    Contributor

    Fixed by #5035

  3. added a commit that references this issue on Nov 20, 2025
  4. added a commit that references this issue on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions