这是indexloc提供的服务,不要输入任何密码
Skip to content

Use @overload where appropriate #918

@MischaPanch

Description

@MischaPanch

This is purely a typing issue

Many functions in tianshou deal with union types, e.g. an input can be a Batch, a Tensor or ndarray and the output types depend on the input. Python's @overload can provide a stricter type annotation in these cases.

The description of the issue is currently incomplete and will be extended as it is addressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    typingMainly improving types, no or very few functional changes

    Type

    No type

    Projects

    Status

    To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions