Skip to content

Incorrect callable function signatures #1814

Closed
@ehsanmok

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].

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions